From 8e074723ec3d889ee2291f567f0303e0569aedc3 Mon Sep 17 00:00:00 2001 From: Kelvin Schoofs Date: Wed, 16 Dec 2020 19:20:06 +0100 Subject: [PATCH] Fix typos in comments/logging --- src/config.ts | 2 +- src/connection.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index f90b6bd..122243a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -57,7 +57,7 @@ async function readConfigFile(location: string, shouldExist = false): Promise(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[] = []; diff --git a/src/connection.ts b/src/connection.ts index 6d35003..2b3b906 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -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);