Skip to content

Commit

Permalink
feat: optimize error output
Browse files Browse the repository at this point in the history
  • Loading branch information
jiawei686 authored and humyfred committed Jan 20, 2022
1 parent 4061e50 commit 1282583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/scripts/cherry-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -35965,7 +35965,7 @@
return oneHook[action](newMd, actionArgs, _this2.markdownParams);
}, $md);
} catch (e) {
throw new NestedError('Invalid syntax hooks definitions: define at least one sort mapping or one type mapping', e);
throw new NestedError(e);
}

return $md;
Expand Down
5 changes: 1 addition & 4 deletions src/Engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ export default class Engine {
return oneHook[action](newMd, actionArgs, this.markdownParams);
}, $md);
} catch (e) {
throw new NestedError(
'Invalid syntax hooks definitions: define at least one sort mapping or one type mapping',
e,
);
throw new NestedError(e);
}
return $md;
}
Expand Down

0 comments on commit 1282583

Please sign in to comment.