jspm/jspm-cli — pull request #112 by jamespamplin (2014-08-27 10:56:19+00:00)
Title: Minor fix: jspm fails without exit code when github ratelimit hit

Found that when the github ratelimit is hit, JSPM will throw a integer (403) instead of an error. This causes `ui.log('err', err.stack || err);` to throw, preventing `process.exit(1);`

From: [jspm.js#L128...L133](/jspm/jspm-cli/blob/master/jspm.js#L128...L133)
```js
}, function(err) {
// something happened (cancel / err)
ui.log('err', err.stack || err);
ui.log('warn', 'Installation changes not saved');
process.exit(1);
});
```

The `ui.log` formatter at [lib/ui.js#L58](/jspm/jspm-cli/blob/master/lib/ui.js#L58) will fail, as the method `.replace` doesn't exist on a non-string object.

This patch fixes this by converting all error messages to String first.

Its critical for jspm to fail with `process.exit(1);` for our build process to fail, otherwise it will continue with our packages is an unexpected state.