Fix typos in comments/logging

feature/ssh-config
Kelvin Schoofs 4 years ago
parent 9e3041116c
commit 8e074723ec

@ -57,7 +57,7 @@ async function readConfigFile(location: string, shouldExist = false): Promise<Fi
const content = await toPromise<Buffer>(cb => readFile(location, cb)).catch((e: NodeJS.ErrnoException) => e);
if (content instanceof Error) {
if (content.code === 'ENOENT' && !shouldExist) return [];
logging.error(`Error while reading ${location}: ${content.message}`);
logging.error(`Error while reading config file ${location}: ${content.message}`);
return [];
}
const errors: ParseError[] = [];

@ -45,7 +45,7 @@ export class ConnectionManager {
terminals: [],
filesystems: [],
pendingUserCount: 0,
idleTimer: setInterval(() => { // Auutomatically close connection when idle for a while
idleTimer: setInterval(() => { // Automatically close connection when idle for a while
timeoutCounter = timeoutCounter ? timeoutCounter - 1 : 0;
if (con.pendingUserCount) return;
con.filesystems = con.filesystems.filter(fs => !fs.closed && !fs.closing);

Loading…
Cancel
Save