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

Clean up a couple regressions.

This commit is contained in:
hacksalot
2016-02-02 14:13:38 -05:00
parent dd4851498a
commit a456093f13
4 changed files with 13 additions and 5 deletions

10
dist/verbs/build.js vendored
View File

@ -129,6 +129,11 @@ Implementation of the 'build' verb for HackMyResume.
});
try {
tFolder = _verifyTheme.call(this, _opts.theme);
if (tFolder.fluenterror) {
tFolder.quit = true;
this.err(tFolder.fluenterror, tFolder);
return;
}
theme = _opts.themeObj = _loadTheme(tFolder);
_addFreebieFormats(theme);
} catch (_error) {
@ -406,9 +411,10 @@ Implementation of the 'build' verb for HackMyResume.
if (!exists(tFolder)) {
tFolder = PATH.resolve(themeNameOrPath);
if (!exists(tFolder)) {
this.err(HMSTATUS.themeNotFound, {
return {
fluenterror: HMSTATUS.themeNotFound,
data: _opts.theme
});
};
}
}
return tFolder;

1
dist/verbs/verb.js vendored
View File

@ -73,7 +73,6 @@ Definition of the Verb class.
payload["throw"] = hot;
this.setError(errorCode, payload);
if (payload.quit) {
console.log(payload);
this.reject(errorCode);
}
this.fire('error', payload);