kopia lustrzana https://github.com/c9/core
oberr is just a function
rodzic
8ee3e4cad1
commit
4054d149b2
|
@ -4,7 +4,7 @@ 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) {
|
||||
return function oberr(err) {
|
||||
var ob = {};
|
||||
Object.getOwnPropertyNames(err).forEach(function(key) {
|
||||
ob[key] = err[key];
|
||||
|
|
Ładowanie…
Reference in New Issue