Turned oberr into a seperate module so we can use it client side

pull/223/head
Tim Robinson 2015-10-01 10:40:17 +00:00
rodzic c55ffd1b35
commit 54fa807ed2
2 zmienionych plików z 16 dodań i 1 usunięć

15
node_modules/c9/oberr.js wygenerowano vendored 100644
Wyświetl plik

@ -0,0 +1,15 @@
define(function(require, exports, module) {
/**
* Turns a JS Error into a proper object that can be stringified
* https://github.com/timjrobinson/oberr for more information
**/
exports.oberr = function(err) {
var ob = {};
Object.getOwnPropertyNames(err).forEach(function(key) {
ob[key] = err[key];
});
return ob;
};
});

Wyświetl plik

@ -90,7 +90,7 @@
"c9.ide.imgeditor": "#66a9733dc1",
"c9.ide.immediate": "#18c23aa730",
"c9.ide.installer": "#0fde9f0067",
"c9.ide.mount": "#dccfb51a2b",
"c9.ide.mount": "#eb390ba326",
"c9.ide.navigate": "#c191d9b92f",
"c9.ide.newresource": "#981a408a7b",
"c9.ide.openfiles": "#7fa4a97fed",