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