kopia lustrzana https://github.com/c9/core
Turned oberr into a seperate module so we can use it client side
rodzic
c55ffd1b35
commit
54fa807ed2
|
@ -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;
|
||||
};
|
||||
|
||||
});
|
|
@ -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",
|
||||
|
|
Ładowanie…
Reference in New Issue