diff options
author | 2022-12-08 22:28:46 +0530 | |
---|---|---|
committer | 2022-12-08 16:58:46 +0000 | |
commit | 93d61ced55e7e1c486cdbe6c02c16435ca698860 (patch) | |
tree | e4d9e53260e508711cfcf45232d086e906a09d8e /src/internal-server/app/Controllers/Http/ImageController.js | |
parent | Backported deprecation fixes from electron v22 upgrade (diff) | |
download | ferdium-app-93d61ced55e7e1c486cdbe6c02c16435ca698860.tar.gz ferdium-app-93d61ced55e7e1c486cdbe6c02c16435ca698860.tar.zst ferdium-app-93d61ced55e7e1c486cdbe6c02c16435ca698860.zip |
migrate from gulp to esbuild for faster builds (#815)
Diffstat (limited to 'src/internal-server/app/Controllers/Http/ImageController.js')
-rw-r--r-- | src/internal-server/app/Controllers/Http/ImageController.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/internal-server/app/Controllers/Http/ImageController.js b/src/internal-server/app/Controllers/Http/ImageController.js index 731f181e0..5b8337c49 100644 --- a/src/internal-server/app/Controllers/Http/ImageController.js +++ b/src/internal-server/app/Controllers/Http/ImageController.js | |||
@@ -19,7 +19,8 @@ class ImageController { | |||
19 | 19 | ||
20 | try { | 20 | try { |
21 | await fs.access(iconPath); | 21 | await fs.access(iconPath); |
22 | } catch { | 22 | } catch (error) { |
23 | console.log(error); | ||
23 | // File not available. | 24 | // File not available. |
24 | return response.status(404).send({ | 25 | return response.status(404).send({ |
25 | status: "Icon doesn't exist", | 26 | status: "Icon doesn't exist", |