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

Fix PEEK command.

This commit is contained in:
hacksalot
2016-02-03 20:08:17 -05:00
parent 49ae016f08
commit 5bf4bda6de
8 changed files with 38 additions and 23 deletions

7
dist/verbs/peek.js vendored
View File

@ -52,8 +52,7 @@ Implementation of the 'peek' verb for HackMyResume.
}
tgt = _peekOne.call(this, t, objPath);
if (tgt.error) {
tgt.quit = opts.assert;
this.err(tgt.fluenterror, tgt);
this.setError(tgt.error.fluenterror, tgt.error);
}
return tgt;
}, this);
@ -97,8 +96,8 @@ Implementation of the 'peek' verb for HackMyResume.
error: pkgError
});
return {
val: tgt,
errpr: pkgError
val: obj.ex ? void 0 : tgt,
error: pkgError
};
};