Skip to content

Commit

Permalink
Fixes #349
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzapp committed Feb 9, 2021
1 parent 80ec157 commit f6c233c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
"scripts": {
"build:frontend": "webpack --progress",
"watch:frontend": "webpack --watch --progress",

"start": "npm run build:frontend && node hashbrown.js",
"update": "git pull && git submodule update --recursive --init && npm install && npm run build:frontend",

"watch:nodemon": "nodemon hashbrown.js",

"db:docker": "cd ./docker && sudo docker-compose exec mongodb mongo",
"restart:docker": "cd ./docker && sudo docker-compose restart",
"start:docker": "npm run build:frontend && cd ./docker && sudo docker-compose up --build -d",
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Controller/ControllerBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class ControllerBase extends require('Common/Controller/ControllerBase') {
static error(error, context) {
checkParam(error, 'error', Error, true);

debug.error(error, this, true);
debug.error(error, this);

return new HashBrown.Http.Response(error.message || 'Unexpected error', error.code || 500, error.headers || {});
}
Expand Down
2 changes: 2 additions & 0 deletions src/Server/Controller/ViewController.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class ViewController extends HashBrown.Controller.ControllerBase {
error.code = 500;
}

debug.error(error, this);

switch(error.code) {
default:
return this.render('error', { message: error.message, context: context }, error.code);
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Service/ConfigService.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ConfigService {
all[configName] = await this.get(configName);
}

if(!all.system) { all.system = {}; }
if(!all.system) { all.system = { rootUrl: '' }; }
if(!all.database) { all.database = {}; }

return all;
Expand Down

0 comments on commit f6c233c

Please sign in to comment.