diff options
author | 2021-08-05 08:58:28 +0200 | |
---|---|---|
committer | 2021-08-05 08:05:49 +0000 | |
commit | 305c2c5ecb49a1349be2efb1ef557d61da9a64dc (patch) | |
tree | 19a05ed4ddfc1e5b5bb7fc3ecc071ad562da820f /src/internal-server/app/Exceptions | |
parent | refactor: minor refactoring: solve name-clash of env vars vs vars in the program (diff) | |
download | ferdium-app-305c2c5ecb49a1349be2efb1ef557d61da9a64dc.tar.gz ferdium-app-305c2c5ecb49a1349be2efb1ef557d61da9a64dc.tar.zst ferdium-app-305c2c5ecb49a1349be2efb1ef557d61da9a64dc.zip |
refactor: general code improvements
- replace deprecated fs.exists with fs.existsSync
- replace console.log with debug
- replace hardcoded FERDI_VERSION in start.js with dynamic one from package.json
- correct JSDoc annotations in Handler.js
- simplify macOSPermissions.js
- updates to various eslint rules
- add FileReader to known globals
Diffstat (limited to 'src/internal-server/app/Exceptions')
-rw-r--r-- | src/internal-server/app/Exceptions/Handler.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/internal-server/app/Exceptions/Handler.js b/src/internal-server/app/Exceptions/Handler.js index 111ef4e0e..ab323fd38 100644 --- a/src/internal-server/app/Exceptions/Handler.js +++ b/src/internal-server/app/Exceptions/Handler.js | |||
@@ -13,10 +13,9 @@ class ExceptionHandler extends BaseExceptionHandler { | |||
13 | * @method handle | 13 | * @method handle |
14 | * | 14 | * |
15 | * @param {Object} error | 15 | * @param {Object} error |
16 | * @param {Object} options.request | 16 | * @param {object} options.response |
17 | * @param {Object} options.response | ||
18 | * | 17 | * |
19 | * @return {void} | 18 | * @return {Promise<void>} |
20 | */ | 19 | */ |
21 | async handle(error, { response }) { | 20 | async handle(error, { response }) { |
22 | if (error.name === 'ValidationException') { | 21 | if (error.name === 'ValidationException') { |
@@ -31,10 +30,7 @@ class ExceptionHandler extends BaseExceptionHandler { | |||
31 | * | 30 | * |
32 | * @method report | 31 | * @method report |
33 | * | 32 | * |
34 | * @param {Object} error | 33 | * @return {Promise<boolean>} |
35 | * @param {Object} options.request | ||
36 | * | ||
37 | * @return {void} | ||
38 | */ | 34 | */ |
39 | async report() { | 35 | async report() { |
40 | return true; | 36 | return true; |