Skip to content

Commit

Permalink
Can't help it if Part's server is slow af
Browse files Browse the repository at this point in the history
  • Loading branch information
Goose-Of-War committed Dec 3, 2023
1 parent 9a600bf commit 5b7093e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/git-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ router.post('/', async (req, res) => {
return resolve('Successfully updated');
});
console.log('Code updated. Restarting.');
return process.exit(0);
} catch (err) {
console.log(`updateCode failed\n\tReason: ${err}`);
await hooks.deployErrorHook(pushBranch === 'dev' ? 'dev' : 'prod', req.body.head_commit, err);
} finally {
return process.exit(0);
}
});

Expand Down

0 comments on commit 5b7093e

Please sign in to comment.