frontend/.pnpm-store/v3/files/4e/d8f1555ff5f9795b7dd5ea14a691bcf15cb0c65ac6872e03f5ba20e0614e9f8000cbf586f87fcf53413f039a74c58066077dd5ef6d42082cf87e7e7fdda640

16 lines
451 B
Plaintext

var common = require('./common');
//@
//@ ### error()
//@
//@ Tests if error occurred in the last command. Returns a truthy value if an
//@ error returned, or a falsy value otherwise.
//@
//@ **Note**: do not rely on the
//@ return value to be an error message. If you need the last error message, use
//@ the `.stderr` attribute from the last command's return value instead.
function error() {
return common.state.error;
}
module.exports = error;