1
0
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:
hacksalot
2018-01-31 21:11:21 -05:00
parent 7f656175f0
commit 069506e86d
8 changed files with 88 additions and 12 deletions

6
dist/cli/error.js vendored
View File

@ -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
View File

@ -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