Skip to content

Commit

Permalink
Merge pull request #41 from AndyOGo/bugfix/error-path-must-be-a-strin…
Browse files Browse the repository at this point in the history
…g-on-deletion

Bugfix/error path must be a string on deletion
  • Loading branch information
AndyOGo authored Mar 30, 2017
2 parents b984f57 + 454d153 commit 1629683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/sync-glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const close = syncGlob(sources, target, {

case 'remove':
// eslint-disable-next-line no-console
console.log('%s %s', chalk.bold('DELETE'), chalk.yellow(path.relative(root, data)))
console.log('%s %s', chalk.bold('DELETE'), chalk.yellow(path.relative(root, data[1] || data[0])))
break

case 'watch':
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const syncGlob = (sources, target, options = {}, notify = () => {}) => {
if (options.delete) {
mirrorInit.push(remove(target)
.then(() => {
notify('remove', target)
notify('remove', [target])
})
.catch(notifyError)
)
Expand Down

0 comments on commit 1629683

Please sign in to comment.