mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-02 12:27:08 +01:00
Deglitch.
This commit is contained in:
5
dist/verbs/build.js
vendored
5
dist/verbs/build.js
vendored
@ -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
7
dist/verbs/verb.js
vendored
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user