Skip to content

Commit

Permalink
Merge pull request #520 from Resseguie/board-connect
Browse files Browse the repository at this point in the history
Exit process if error passed to broadcast
  • Loading branch information
divanvisagie committed Dec 10, 2014
2 parents 54c810b + 7d8a747 commit 863f910
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,11 @@ function Board(opts) {

function broadcast(err, type, io) {
if (err) {
this.error("Board", err);
if (err.message) {
console.log(err.message.red);
}

process.exit(1);
} else {

// Assign found io to instance
Expand Down

0 comments on commit 863f910

Please sign in to comment.