Skip to content

Commit

Permalink
Fix message error when port is used
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Aug 3, 2016
1 parent 2c8c5ea commit c50d5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default class {
captureError(){
process.on('uncaughtException', err => {
let msg = err.message;
err = think.error(err, 'port:' + think.config('port'));
err = think.error(err, 'port:' + (think.port || think.config('port')));
think.log(err);
if(msg.indexOf(' EADDRINUSE ') > -1){
process.exit();
Expand Down

0 comments on commit c50d5b6

Please sign in to comment.