summaryrefslogtreecommitdiffstats
path: root/lib/utils
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-02-12 20:48:51 +0100
committerSamy Pesse <samypesse@gmail.com>2016-02-12 20:48:51 +0100
commit82f94b010f1d77957c9d1b0967dcdd5eafe73c39 (patch)
treec13607b4bbdf20eb589052dc785edb6e70d6e031 /lib/utils
parent4555c541a8f98cb6ad4cbec2d7bf85b375dbf505 (diff)
downloadgitbook-82f94b010f1d77957c9d1b0967dcdd5eafe73c39.zip
gitbook-82f94b010f1d77957c9d1b0967dcdd5eafe73c39.tar.gz
gitbook-82f94b010f1d77957c9d1b0967dcdd5eafe73c39.tar.bz2
Remove concept of generator, to merge it with Output
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
};