Skip to content

Commit 9c20a6c

Browse files
The exec command only returns success output for now
* Proper handling of errors will be added Changes to be committed: modified: web/app/controllers/ConfigController.js
1 parent ff63ea0 commit 9c20a6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/app/controllers/ConfigController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ module.exports = new class ConfigController extends Controller {
9696
const runCommad = new Promise((resolve, _reject) => {
9797
exec(cfg.command, (error, stdout, stderr) => {
9898
if (error) {
99-
return resolve(error)
99+
// TODO handle this properly
100100
}
101101
if (stderr) {
102-
return resolve(stderr)
102+
// TODO Handle warninngs properly
103103
}
104104
return resolve(stdout)
105105
})

0 commit comments

Comments
 (0)