summaryrefslogtreecommitdiffstats
path: root/lib/utils
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/error.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/utils/error.js b/lib/utils/error.js
index 5ee6a0e..883a7c6 100644
--- a/lib/utils/error.js
+++ b/lib/utils/error.js
@@ -15,18 +15,11 @@ var ParsingError = WrappedError({
message: 'Parsing Error: {origMessage}',
type: 'parse'
});
-var GenerationError = WrappedError({
- message: 'Generation Error: {origMessage}',
+var OutputError = WrappedError({
+ message: 'Output Error: {origMessage}',
type: 'generate'
});
-// Error when output generator does not exists
-var GeneratorNotFoundError = TypedError({
- type: 'generator.not-found',
- message: 'Generator "{generator}" does not exists',
- generator: null
-});
-
// A file does not exists
var FileNotFoundError = TypedError({
type: 'file.not-found',
@@ -54,11 +47,10 @@ module.exports = {
enforce: enforce,
ParsingError: ParsingError,
- GenerationError: GenerationError,
+ OutputError: OutputError,
FileNotFoundError: FileNotFoundError,
FileOutOfScopeError: FileOutOfScopeError,
- GeneratorNotFoundError: GeneratorNotFoundError,
TemplateError: TemplateError
};