aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/app/Controllers/Http/UserController.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal-server/app/Controllers/Http/UserController.js')
-rw-r--r--src/internal-server/app/Controllers/Http/UserController.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal-server/app/Controllers/Http/UserController.js b/src/internal-server/app/Controllers/Http/UserController.js
index fb1a19db6..9a9d76636 100644
--- a/src/internal-server/app/Controllers/Http/UserController.js
+++ b/src/internal-server/app/Controllers/Http/UserController.js
@@ -25,7 +25,8 @@ const apiRequest = (url, route, method, auth) =>
25 }) 25 })
26 .then(data => data.json()) 26 .then(data => data.json())
27 .then(json => resolve(json)); 27 .then(json => resolve(json));
28 } catch { 28 } catch (error) {
29 console.log(error);
29 reject(); 30 reject();
30 } 31 }
31 }); 32 });
@@ -255,7 +256,8 @@ class UserController {
255 let file; 256 let file;
256 try { 257 try {
257 file = JSON.parse(request.input('file')); 258 file = JSON.parse(request.input('file'));
258 } catch { 259 } catch (error) {
260 console.log(error);
259 return response.send( 261 return response.send(
260 'Could not import: Invalid file, could not read file', 262 'Could not import: Invalid file, could not read file',
261 ); 263 );