Skip to content

Commit

Permalink
Merge pull request #1333 from halkeye/fix-undefined-error
Browse files Browse the repository at this point in the history
Fix CLI Error: undefined when error happens
  • Loading branch information
Half-Shot authored May 25, 2021
2 parents 948f3cc + 7ae7e25 commit 06645e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix "CLI undefined" being spit out from cli on generic errors

0 comments on commit 06645e6

Please sign in to comment.