Skip to content

Commit

Permalink
added stack trace to error printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mbway committed Nov 7, 2020
1 parent 033710c commit dfb9bc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/service-app/classes/TuxedoControlCenterDaemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ export class TuxedoControlCenterDaemon extends SingleProcess {

public catchError(err: Error) {
this.logLine('Tccd Exception');
const errorLine = err.name + ': ' + err.message;
let errorLine = err.name + ': ' + err.message;
let stack = err.stack;
if(stack !== undefined) {
errorLine += '\n\nStack Trace:\n' + stack;
}
this.logLine(errorLine);
if (this.started) {
this.onExit();
Expand Down

0 comments on commit dfb9bc6

Please sign in to comment.