mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-10 07:47:07 +01:00
More VALIDATE fixups.
This commit is contained in:
@ -274,6 +274,7 @@ executeFail = (err) ->
|
||||
if _opts.debug
|
||||
msgs = require('./msg').errors;
|
||||
logMsg printf M2C( msgs.exiting.msg, 'cyan' ), finalErrorCode
|
||||
logMsg err.stack if err.stack
|
||||
_exitCallback finalErrorCode
|
||||
return
|
||||
|
||||
|
@ -148,11 +148,11 @@ module.exports = class OutputHandler
|
||||
when 'invalid' then style = 'yellow'; adj = msgs[2]
|
||||
when 'broken' then style = 'red'; adj = msgs[3]
|
||||
when 'missing' then style = 'red'; adj = msgs[4]
|
||||
evt.fmt = evt.fmt.toUpperCase()
|
||||
L(M2C( msgs[0], 'white' ) + chalk[style].bold(adj), evt.file, evt.fmt)
|
||||
evt.schema = evt.schema.toUpperCase()
|
||||
L(M2C( msgs[0], 'white' ) + chalk[style].bold(adj), evt.file, evt.schema)
|
||||
|
||||
if evt.errors
|
||||
_.each evt.errors, (err,idx) ->
|
||||
if evt.violations
|
||||
_.each evt.violations, (err,idx) ->
|
||||
L( chalk.yellow.bold('--> ') +
|
||||
chalk.yellow(err.field.replace('data.','resume.').toUpperCase() +
|
||||
' ' + err.message))
|
||||
|
Reference in New Issue
Block a user