MCPcopy
hub / github.com/shelljs/shelljs / convertErrorOutput

Function convertErrorOutput

src/common.js:76–81  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

74// for making sure we use '/' instead of '\' as path separators, but this may be
75// expanded in the future if necessary
76function convertErrorOutput(msg) {
77 if (typeof msg !== 'string') {
78 throw new TypeError('input must be a string');
79 }
80 return msg.replace(/\\/g, '/');
81}
82exports.convertErrorOutput = convertErrorOutput;
83
84// An exception class to help propagate command errors (e.g., non-zero exit

Callers 1

errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…