mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 08:01:53 +00:00
大坑一个
This commit is contained in:
8
node_modules/common.js
generated
vendored
8
node_modules/common.js
generated
vendored
@@ -5,6 +5,14 @@ var ObjectId = require('objectid');
|
||||
|
||||
// var gui = require('nw.gui');
|
||||
// console.log(gui.App);
|
||||
//
|
||||
process.on('uncaughtException', function (err) {
|
||||
// 打印出错误
|
||||
console.log('~!!~ uncaughtException ~!!~');
|
||||
console.log(err);
|
||||
// 打印出错误的调用栈方便调试
|
||||
console.log(err.stack);
|
||||
});
|
||||
|
||||
function log(o) {console.log(o)}
|
||||
// log("<>>>>>>>>>>>>>>>>>>>>");
|
||||
|
Reference in New Issue
Block a user