aboutsummaryrefslogtreecommitdiff
path: root/cordova/node_modules/shelljs/src/error.js
blob: cca3efb608d0dc624e194139b8f2c7d85cad881a (plain)
1
2
3
4
5
6
7
8
9
10
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;