From eacd4cf8093b30c761f178b1b6ea0b5b0ee2e4c9 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 2 Jun 2023 16:03:09 +0000 Subject: [PATCH] new init system lol --- src/libpoketube/libpoketube-initsys.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/libpoketube-initsys.js b/src/libpoketube/libpoketube-initsys.js index cdb92af0..257cff54 100644 --- a/src/libpoketube/libpoketube-initsys.js +++ b/src/libpoketube/libpoketube-initsys.js @@ -18,11 +18,14 @@ function initlog(args){ function init (app, port){ if(!port) port = "3000" + try { app.listen(port, () => { initlog("Loading Poketube: success!" + " on port " + port); }); + } catch (err) { + initlog("Loading Poketube: error", err); } @@ -35,7 +38,7 @@ module.exports = wiki:require("wikipedia"), initlog, init, - version:"libpoketube-3.0-git-IcHi", + version:"libpoketube-3.1.1-git-aStfl", modules:{ fetch:require("node-fetch"), toJson:require("xml2json").toJson, @@ -46,4 +49,4 @@ module.exports = moment:require("moment"), getColors:require("get-image-colors"), } -} +} \ No newline at end of file