summaryrefslogtreecommitdiffstats
path: root/lib/utils/error.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/error.js')
-rw-r--r--lib/utils/error.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/utils/error.js b/lib/utils/error.js
index 53d8221..52281bf 100644
--- a/lib/utils/error.js
+++ b/lib/utils/error.js
@@ -55,6 +55,12 @@ var PluginError = WrappedError({
plugin: null
});
+// Error for nunjucks templates
+var ConfigurationError = WrappedError({
+ message: 'Error with book\'s configuration: {origMessage}',
+ type: 'configuration'
+});
+
// Deprecate methods/fields
function deprecateMethod(fn, msg) {
return deprecated.method(msg, log.warn.ln, fn);
@@ -74,6 +80,7 @@ module.exports = {
TemplateError: TemplateError,
PluginError: PluginError,
+ ConfigurationError: ConfigurationError,
deprecateMethod: deprecateMethod,
deprecateField: deprecateField