fix dependency: strftime

This commit is contained in:
harttle
2016-06-16 01:02:00 +08:00
parent 2498e6c202
commit 9fe49e9872
11 changed files with 115 additions and 51 deletions
+11
View File
@@ -0,0 +1,11 @@
function factory(msg, token){
var err = new Error(msg || 'unkown error');
if(token){
err.token = token.raw;
err.line = token.line;
}
throw err;
}
module.exports = factory;