1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-02 12:27:08 +01:00

Deglitch.

This commit is contained in:
hacksalot
2016-02-02 19:02:56 -05:00
parent 89957aed76
commit 49ae016f08
9 changed files with 71 additions and 23 deletions

5
dist/verbs/build.js vendored
View File

@ -201,11 +201,12 @@ Implementation of the 'build' verb for HackMyResume.
_rezObj = new RTYPES[toFormat]().parseJSON(rez);
targets = _expand(dst, theme);
_.each(targets, function(t) {
var ref;
if (this.hasError() && opts.assert) {
return {};
}
t.final = _single.call(this, t, theme, targets);
if (t.final.fluenterror) {
if ((ref = t.final) != null ? ref.fluenterror : void 0) {
t.final.quit = opts.assert;
this.err(t.final.fluenterror, t.final);
}
@ -258,7 +259,7 @@ Implementation of the 'build' verb for HackMyResume.
f = targInfo.file;
try {
if (!targInfo.fmt) {
return;
return {};
}
fType = targInfo.fmt.outFormat;
fName = PATH.basename(f, '.' + fType);

7
dist/verbs/verb.js vendored
View File

@ -16,7 +16,9 @@ Definition of the Verb class.
/**
An instantiation of a HackMyResume command.
An abstract invokable verb.
Provides base class functionality for verbs. Provide common services such as
error handling, event management, and promise support.
@class Verb
*/
@ -92,6 +94,9 @@ Definition of the Verb class.
return true;
};
/** Has an error occurred during this verb invocation? */
Verb.prototype.hasError = function() {
return this.errorCode || this.errorObj;
};