diff options
Diffstat (limited to 'lib/utils/error.js')
-rw-r--r-- | lib/utils/error.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/utils/error.js b/lib/utils/error.js index c1abebd..53d8221 100644 --- a/lib/utils/error.js +++ b/lib/utils/error.js @@ -48,6 +48,13 @@ var TemplateError = WrappedError({ filename: null }); +// Error for nunjucks templates +var PluginError = WrappedError({ + message: 'Error with plugin "{plugin}": {origMessage}', + type: 'plugin', + plugin: null +}); + // Deprecate methods/fields function deprecateMethod(fn, msg) { return deprecated.method(msg, log.warn.ln, fn); @@ -66,6 +73,7 @@ module.exports = { FileOutOfScopeError: FileOutOfScopeError, TemplateError: TemplateError, + PluginError: PluginError, deprecateMethod: deprecateMethod, deprecateField: deprecateField |