Skip to content

No Error catched for returned promise. #65

@pascalduez

Description

@pascalduez

No .sassdoc destination dir exist.
env.theme('.sassdoc', env).catch(console.log); --> []

No theme/assets source dir exist.
env.theme('.sassdoc', env).catch(console.log); --> []

fs-extra dependency is 0.1.0 which is pretty low, latest is 0.16.3.
And in this version copy = ncp
There something screwed in the way ncp pass errors to callbacks.

Solution, uptate to fs-extra@0.16.1. At least there's an Error returned on source fail.

fs-extra.copy only error if the source is erroneous, if the destination does not exist it just silently exit.

Solution, add a fs.exist(dest) test before ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions