Skip to content

Commit dfb9bc6

Browse files
committed
added stack trace to error printing
1 parent 033710c commit dfb9bc6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/service-app/classes/TuxedoControlCenterDaemon.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ export class TuxedoControlCenterDaemon extends SingleProcess {
134134

135135
public catchError(err: Error) {
136136
this.logLine('Tccd Exception');
137-
const errorLine = err.name + ': ' + err.message;
137+
let errorLine = err.name + ': ' + err.message;
138+
let stack = err.stack;
139+
if(stack !== undefined) {
140+
errorLine += '\n\nStack Trace:\n' + stack;
141+
}
138142
this.logLine(errorLine);
139143
if (this.started) {
140144
this.onExit();

0 commit comments

Comments
 (0)