Handle errors from Mapscii.init()

This commit is contained in:
Christian Paul 2018-11-19 00:17:12 -08:00
parent b320618a7e
commit cdb0f45c75

View File

@ -11,4 +11,7 @@
const Mapscii = require('./src/Mapscii'); const Mapscii = require('./src/Mapscii');
const mapscii = new Mapscii(); const mapscii = new Mapscii();
mapscii.init(); mapscii.init().catch((err) => {
console.error('Failed to start MapSCII.');
console.error(err);
});