Skip to content

Commit

Permalink
linting and type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozy-Viking committed Dec 14, 2023
1 parent a014b52 commit 161b012
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions backend/socket-handlers/terminal-socket-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,15 @@ export class TerminalSocketHandler extends SocketHandler {
terminal.rows = rows;
terminal.cols = cols;
} else {
throw new Error("Terminal not found.");
throw new Error(`${terminalName} Terminal not found.`);
}
} catch (e: Error) {
} catch (e) {
log.debug(
"terminalResize",
`Error on ${terminalName}: ${e?.message}`
// Added to prevent the lint error when adding the type
// and ts type checker saying type is unknown.
// @ts-ignore
`Error on ${terminalName}: ${e.message}`
);
}
}
Expand Down

0 comments on commit 161b012

Please sign in to comment.