Skip to content

Commit

Permalink
Check the format of config.macro and config.template.
Browse files Browse the repository at this point in the history
  • Loading branch information
fool2fish committed Oct 22, 2014
1 parent a6ac6bf commit dd469bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/handle-cfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ function str2Obj(raw) {
raw: raw,
fullPath: path.resolve(raw)
}
} else {
} else if (utilx.isString(raw)){
return {
isFile: false,
raw: raw
}
} else {
logger.error('Value of config.value or config.template must be a file path or a velocity string.')
}
}

0 comments on commit dd469bf

Please sign in to comment.