mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Clean up a couple regressions.
This commit is contained in:
parent
dd4851498a
commit
a456093f13
10
dist/verbs/build.js
vendored
10
dist/verbs/build.js
vendored
@ -129,6 +129,11 @@ Implementation of the 'build' verb for HackMyResume.
|
|||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
tFolder = _verifyTheme.call(this, _opts.theme);
|
tFolder = _verifyTheme.call(this, _opts.theme);
|
||||||
|
if (tFolder.fluenterror) {
|
||||||
|
tFolder.quit = true;
|
||||||
|
this.err(tFolder.fluenterror, tFolder);
|
||||||
|
return;
|
||||||
|
}
|
||||||
theme = _opts.themeObj = _loadTheme(tFolder);
|
theme = _opts.themeObj = _loadTheme(tFolder);
|
||||||
_addFreebieFormats(theme);
|
_addFreebieFormats(theme);
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
@ -406,9 +411,10 @@ Implementation of the 'build' verb for HackMyResume.
|
|||||||
if (!exists(tFolder)) {
|
if (!exists(tFolder)) {
|
||||||
tFolder = PATH.resolve(themeNameOrPath);
|
tFolder = PATH.resolve(themeNameOrPath);
|
||||||
if (!exists(tFolder)) {
|
if (!exists(tFolder)) {
|
||||||
this.err(HMSTATUS.themeNotFound, {
|
return {
|
||||||
|
fluenterror: HMSTATUS.themeNotFound,
|
||||||
data: _opts.theme
|
data: _opts.theme
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return tFolder;
|
return tFolder;
|
||||||
|
1
dist/verbs/verb.js
vendored
1
dist/verbs/verb.js
vendored
@ -73,7 +73,6 @@ Definition of the Verb class.
|
|||||||
payload["throw"] = hot;
|
payload["throw"] = hot;
|
||||||
this.setError(errorCode, payload);
|
this.setError(errorCode, payload);
|
||||||
if (payload.quit) {
|
if (payload.quit) {
|
||||||
console.log(payload);
|
|
||||||
this.reject(errorCode);
|
this.reject(errorCode);
|
||||||
}
|
}
|
||||||
this.fire('error', payload);
|
this.fire('error', payload);
|
||||||
|
@ -81,6 +81,10 @@ _build = ( src, dst, opts ) ->
|
|||||||
@stat HMEVENT.beforeTheme, { theme: _opts.theme }
|
@stat HMEVENT.beforeTheme, { theme: _opts.theme }
|
||||||
try
|
try
|
||||||
tFolder = _verifyTheme.call @, _opts.theme
|
tFolder = _verifyTheme.call @, _opts.theme
|
||||||
|
if tFolder.fluenterror
|
||||||
|
tFolder.quit = true
|
||||||
|
@err tFolder.fluenterror, tFolder
|
||||||
|
return
|
||||||
theme = _opts.themeObj = _loadTheme tFolder
|
theme = _opts.themeObj = _loadTheme tFolder
|
||||||
_addFreebieFormats theme
|
_addFreebieFormats theme
|
||||||
catch
|
catch
|
||||||
@ -328,7 +332,7 @@ _verifyTheme = ( themeNameOrPath ) ->
|
|||||||
if !exists( tFolder )
|
if !exists( tFolder )
|
||||||
tFolder = PATH.resolve themeNameOrPath
|
tFolder = PATH.resolve themeNameOrPath
|
||||||
if !exists tFolder
|
if !exists tFolder
|
||||||
this.err HMSTATUS.themeNotFound, { data: _opts.theme }
|
return fluenterror: HMSTATUS.themeNotFound, data: _opts.theme
|
||||||
tFolder
|
tFolder
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,7 +60,6 @@ module.exports = class Verb
|
|||||||
payload.throw = hot
|
payload.throw = hot
|
||||||
@setError errorCode, payload
|
@setError errorCode, payload
|
||||||
if payload.quit
|
if payload.quit
|
||||||
console.log payload
|
|
||||||
@reject errorCode
|
@reject errorCode
|
||||||
@fire 'error', payload
|
@fire 'error', payload
|
||||||
if hot
|
if hot
|
||||||
|
Loading…
Reference in New Issue
Block a user