mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-02 20:37:08 +01:00
More VALIDATE fixups.
This commit is contained in:
3
dist/cli/main.js
vendored
3
dist/cli/main.js
vendored
@ -240,6 +240,9 @@ Definition of the `main` function.
|
||||
if (_opts.debug) {
|
||||
msgs = require('./msg').errors;
|
||||
logMsg(printf(M2C(msgs.exiting.msg, 'cyan'), finalErrorCode));
|
||||
if (err.stack) {
|
||||
logMsg(err.stack);
|
||||
}
|
||||
}
|
||||
_exitCallback(finalErrorCode);
|
||||
};
|
||||
|
8
dist/cli/out.js
vendored
8
dist/cli/out.js
vendored
@ -152,10 +152,10 @@ Output routines for HackMyResume.
|
||||
style = 'red';
|
||||
adj = msgs[4];
|
||||
}
|
||||
evt.fmt = evt.fmt.toUpperCase();
|
||||
L(M2C(msgs[0], 'white') + chalk[style].bold(adj), evt.file, evt.fmt);
|
||||
if (evt.errors) {
|
||||
_.each(evt.errors, function(err, idx) {
|
||||
evt.schema = evt.schema.toUpperCase();
|
||||
L(M2C(msgs[0], 'white') + chalk[style].bold(adj), evt.file, evt.schema);
|
||||
if (evt.violations) {
|
||||
_.each(evt.violations, function(err, idx) {
|
||||
L(chalk.yellow.bold('--> ') + chalk.yellow(err.field.replace('data.', 'resume.').toUpperCase() + ' ' + err.message));
|
||||
}, this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user