mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-02 20:37:08 +01:00
feat: support custom theme helpers
This commit is contained in:
6
dist/cli/error.js
vendored
6
dist/cli/error.js
vendored
@ -61,7 +61,7 @@ Error-handling routines for HackMyResume.
|
||||
stack = ex.stack || (ex.inner && ex.inner.stack);
|
||||
stack && o(chalk.gray(stack));
|
||||
}
|
||||
if (shouldExit) {
|
||||
if (shouldExit || ex.exit) {
|
||||
if (this.debug) {
|
||||
o(chalk.cyan('Exiting with error code ' + ex.fluenterror.toString()));
|
||||
}
|
||||
@ -262,6 +262,10 @@ Error-handling routines for HackMyResume.
|
||||
case HMSTATUS.unknownSchema:
|
||||
msg = M2C(this.msgs.unknownSchema.msg[0]);
|
||||
etype = 'error';
|
||||
break;
|
||||
case HMSTATUS.themeHelperLoad:
|
||||
msg = printf(M2C(this.msgs.themeHelperLoad.msg), ex.glob);
|
||||
etype = 'error';
|
||||
}
|
||||
return {
|
||||
msg: msg,
|
||||
|
5
dist/cli/msg.yml
vendored
5
dist/cli/msg.yml
vendored
@ -132,3 +132,8 @@ errors:
|
||||
"basics": {
|
||||
"name": "John Doe"
|
||||
}
|
||||
themeHelperLoad:
|
||||
msg: >-
|
||||
An error occurred while attempting to load the '%s' theme helper. Is the
|
||||
theme correctly installed?
|
||||
dummy: dontcare
|
||||
|
Reference in New Issue
Block a user