Skip to content

Commit

Permalink
🎨 Minor style update
Browse files Browse the repository at this point in the history
  • Loading branch information
jysperm committed Aug 1, 2017
1 parent 1071bcc commit a94072f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';

var express = require('express');
var timeout = require('connect-timeout');
var path = require('path');
Expand Down
5 changes: 3 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';

var AV = require('leanengine');

AV.init({
Expand All @@ -21,9 +22,9 @@ app.listen(PORT, function (err) {

// 注册全局未捕获异常处理器
process.on('uncaughtException', function(err) {
console.error("Caught exception:", err.stack);
console.error('Caught exception:', err.stack);
});
process.on('unhandledRejection', function(reason, p) {
console.error("Unhandled Rejection at: Promise ", p, " reason: ", reason.stack);
console.error('Unhandled Rejection at: Promise ', p, ' reason: ', reason.stack);
});
});

0 comments on commit a94072f

Please sign in to comment.