From dcdfc94cb39dfe2c39925a0145ffa45e2d061c30 Mon Sep 17 00:00:00 2001 From: Kumar Priyansh Date: Sat, 19 Jan 2019 12:37:14 +0530 Subject: Initial Upload via GIT --- cordova/node_modules/shelljs/src/error.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 cordova/node_modules/shelljs/src/error.js (limited to 'cordova/node_modules/shelljs/src/error.js') diff --git a/cordova/node_modules/shelljs/src/error.js b/cordova/node_modules/shelljs/src/error.js new file mode 100755 index 0000000..cca3efb --- /dev/null +++ b/cordova/node_modules/shelljs/src/error.js @@ -0,0 +1,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; -- cgit v1.2.3