From 7683f94d2ba558767d2b7a953fb1e2984a8413fa Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Sat, 20 Jun 2015 00:44:33 -0400 Subject: [PATCH] improve dot slash error message --- src/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.coffee b/src/index.coffee index ccf6806..beb22c4 100644 --- a/src/index.coffee +++ b/src/index.coffee @@ -8,7 +8,7 @@ module.exports = (patterns = [], options = {}) -> matchers = patterns.map (pattern) -> if pattern.indexOf("./") is 0 - throw new Error "Don't start patterns with `./` - they will never match. Just leave out `./`" + throw new Error "Don't start patterns with `./` - they will never match. Use `base` option instead." Minimatch pattern