1
0
mirror of https://gitea.com/actions/setup-node.git synced 2025-07-03 23:33:54 +08:00
setup-node/node_modules/shelljs/src/error.js

11 lines
266 B
JavaScript
Raw Normal View History

2019-06-27 04:52:05 +08:00
var common = require('./common');
//@
//@ ### error()
//@ Tests if error occurred in the last command. Returns `null` if no error occurred,
//@ otherwise returns string explaining the error
function error() {
return common.state.error;
};
module.exports = error;