From 3e472f9ae04f901e079d86524524a22334f4fe30 Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Sun, 20 Sep 2020 01:23:34 +0200 Subject: [PATCH] created error for no port aviable --- src/Errors.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Errors.ts b/src/Errors.ts index 645771e..2f76595 100644 --- a/src/Errors.ts +++ b/src/Errors.ts @@ -10,7 +10,8 @@ export const enum ERROR_CODE { NO_SESSION_INFO, NO_ENCRYPTION, ARIA2C_CRASH, - NO_CONNECT_ARIA2C + NO_CONNECT_ARIA2C, + NO_DEAMON_PORT } @@ -36,7 +37,9 @@ export const errors: {[key: number]: string} = { [ERROR_CODE.ARIA2C_CRASH]: 'The aria2c rpc server crashed with the previous message', - [ERROR_CODE.NO_CONNECT_ARIA2C]: 'Could not connect to Aria2c json-rpc webSocket' + [ERROR_CODE.NO_CONNECT_ARIA2C]: 'Could not connect to Aria2c json-rpc webSocket', + + [ERROR_CODE.NO_DEAMON_PORT]: 'Could not get a free port to use' };