Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Andrei committed Jun 24, 2019
1 parent bc4217d commit 4b6a98e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -51,7 +51,7 @@ module.exports = (source, destination, options = {}) => {
}

if (files.length === 0) {
throw new CpyError(`Cannot copy \`${source}\`: no files found`);
throw new CpyError(`Cannot copy \`${source}\`: the file doesn't exist`);
}

const fileProgressHandler = event => {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -36,6 +36,7 @@ const cpy = require('cpy');
### cpy(source, destination, options?)

Returns a `Promise<string[]>` with the destination file paths.
If the file does not exist, an error will be thrown.

#### source

Expand Down

0 comments on commit 4b6a98e

Please sign in to comment.