mirror of
https://gitee.com/github-actions/setup-node
synced 2024-04-27 22:27:08 +08:00
11 lines
266 B
JavaScript
11 lines
266 B
JavaScript
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;
|