Skip to content

Commit

Permalink
Fix CLI Error: undefined when error happens
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Mogan <git@gavinmogan.com>
  • Loading branch information
halkeye committed May 24, 2021
1 parent 948f3cc commit 7ae7e25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
@@ -1,6 +1,7 @@
"use strict";
const Cli = require("matrix-appservice-bridge").Cli;
const log = require("./lib/logging").get("CLI");
const {logErr} = require("./lib/logging");
const main = require("./lib/main");
const path = require("path");

Expand Down Expand Up @@ -58,7 +59,7 @@ new Cli({
bridge = resultBridge;
}).catch(function(err) {
log.error("Failed to run bridge.");
log.error(err);
logErr(log, err);
process.exit(1);
});

Expand Down
1 change: 1 addition & 0 deletions changelog.d/1333.bugfix
@@ -0,0 +1 @@
Fix "CLI undefined" being spit out from cli on generic errors

0 comments on commit 7ae7e25

Please sign in to comment.