mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-10 07:47:07 +01:00
feat: support custom theme helpers
This commit is contained in:
@ -57,7 +57,7 @@ ErrorHandler = module.exports =
|
||||
stack && o( chalk.gray( stack ) );
|
||||
|
||||
# Quit if necessary
|
||||
if shouldExit
|
||||
if shouldExit or ex.exit
|
||||
if @debug
|
||||
o chalk.cyan('Exiting with error code ' + ex.fluenterror.toString())
|
||||
if @assert
|
||||
@ -253,6 +253,11 @@ assembleError = ( ex ) ->
|
||||
#msg += "\n" + M2C( @msgs.unknownSchema.msg[1], 'yellow' )
|
||||
etype = 'error'
|
||||
|
||||
when HMSTATUS.themeHelperLoad
|
||||
msg = printf M2C( @msgs.themeHelperLoad.msg ), ex.glob
|
||||
etype = 'error'
|
||||
|
||||
|
||||
msg: msg # The error message to display
|
||||
withStack: withStack # Whether to include the stack
|
||||
quit: quit
|
||||
|
@ -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