Showing
6 changed files
with
6 additions
and
4 deletions
@@ -20,7 +20,7 @@ const logger = global.yoho.logger; | @@ -20,7 +20,7 @@ const logger = global.yoho.logger; | ||
20 | 20 | ||
21 | const TYPE = require('./type'); | 21 | const TYPE = require('./type'); |
22 | 22 | ||
23 | -const DIR = './rule/'; | 23 | +const DIR = './rules/'; |
24 | 24 | ||
25 | const curDir = path.resolve(__dirname, DIR); | 25 | const curDir = path.resolve(__dirname, DIR); |
26 | const files = fs.readdirSync(curDir); | 26 | const files = fs.readdirSync(curDir); |
@@ -38,7 +38,7 @@ files.forEach((file) => { | @@ -38,7 +38,7 @@ files.forEach((file) => { | ||
38 | try { | 38 | try { |
39 | domainRules[module] = require(loadPath); | 39 | domainRules[module] = require(loadPath); |
40 | } catch (e) { | 40 | } catch (e) { |
41 | - logger.error('load rule wrong', e); | 41 | + logger.error('load rules wrong', e); |
42 | } | 42 | } |
43 | } | 43 | } |
44 | }); | 44 | }); |
-
Please register or login to post a comment