Permalink
Browse files

Handle errors from Mapscii.init()

  • Loading branch information...
jaller94 committed Nov 19, 2018
1 parent b320618 commit cdb0f45c758cab3eb0d4aa46e2361082cc09711c
Showing with 4 additions and 1 deletion.
  1. +4 −1 main.js
@@ -11,4 +11,7 @@
const Mapscii = require('./src/Mapscii');
const mapscii = new Mapscii();
mapscii.init();
mapscii.init().catch((err) => {
console.error('Failed to start MapSCII.');
console.error(err);
});

0 comments on commit cdb0f45

Please sign in to comment.