mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-03 04:47:07 +01:00
Clean up a couple regressions.
This commit is contained in:
@ -81,6 +81,10 @@ _build = ( src, dst, opts ) ->
|
||||
@stat HMEVENT.beforeTheme, { theme: _opts.theme }
|
||||
try
|
||||
tFolder = _verifyTheme.call @, _opts.theme
|
||||
if tFolder.fluenterror
|
||||
tFolder.quit = true
|
||||
@err tFolder.fluenterror, tFolder
|
||||
return
|
||||
theme = _opts.themeObj = _loadTheme tFolder
|
||||
_addFreebieFormats theme
|
||||
catch
|
||||
@ -328,7 +332,7 @@ _verifyTheme = ( themeNameOrPath ) ->
|
||||
if !exists( tFolder )
|
||||
tFolder = PATH.resolve themeNameOrPath
|
||||
if !exists tFolder
|
||||
this.err HMSTATUS.themeNotFound, { data: _opts.theme }
|
||||
return fluenterror: HMSTATUS.themeNotFound, data: _opts.theme
|
||||
tFolder
|
||||
|
||||
|
||||
|
@ -60,7 +60,6 @@ module.exports = class Verb
|
||||
payload.throw = hot
|
||||
@setError errorCode, payload
|
||||
if payload.quit
|
||||
console.log payload
|
||||
@reject errorCode
|
||||
@fire 'error', payload
|
||||
if hot
|
||||
|
Reference in New Issue
Block a user