log unhandled errors by default
This commit is contained in:
@@ -3,6 +3,11 @@ require("dotenv").config();
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
openBudget: async function () {
|
openBudget: async function () {
|
||||||
|
process.on('unhandledRejection', (reason, p) => {
|
||||||
|
console.log('Unhandled Rejection at: Promise', p, 'reason:', reason);
|
||||||
|
console.log(reason.stack);
|
||||||
|
});
|
||||||
|
|
||||||
const url = process.env.ACTUAL_SERVER_URL || '';
|
const url = process.env.ACTUAL_SERVER_URL || '';
|
||||||
const password = process.env.ACTUAL_SERVER_PASSWORD || '';
|
const password = process.env.ACTUAL_SERVER_PASSWORD || '';
|
||||||
const file_password = process.env.ACTUAL_FILE_PASSWORD || '';
|
const file_password = process.env.ACTUAL_FILE_PASSWORD || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user