Skip to content

Commit

Permalink
Fix typo in error message (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblossom authored and sindresorhus committed Feb 27, 2019
1 parent 2b3ee82 commit e73cc8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const rimrafP = pify(rimraf);

function safeCheck(file) {
if (isPathCwd(file)) {
throw new Error('Cannot delete the current working directory. Can be overriden with the `force` option.');
throw new Error('Cannot delete the current working directory. Can be overridden with the `force` option.');
}

if (!isPathInCwd(file)) {
throw new Error('Cannot delete files/folders outside the current working directory. Can be overriden with the `force` option.');
throw new Error('Cannot delete files/folders outside the current working directory. Can be overridden with the `force` option.');
}
}

Expand Down

0 comments on commit e73cc8a

Please sign in to comment.