fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima

This commit is contained in:
Rodrigo Rodriguez 2023-12-07 17:10:57 -03:00
parent df76d1de65
commit f2da1f8810
2 changed files with 9 additions and 1 deletions

View file

@ -1673,7 +1673,7 @@ export class SystemKeywords {
function process(key, value, o) {
if (value === '0000-00-00') {
o[key] = '1970-01-01 00:00:00.000'
o[key] = null;
}
}

View file

@ -109,6 +109,14 @@ export class GBServer {
GBLog.info('SIGTERM signal received.');
});
process.on('uncaughtException', (err, p) => {
if (err !== null) {
err = err['e'] ? err['e'] : err;
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''}`);
} else {
GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)');
}
});
// Creates working directory.
process.env.PWD = process.cwd();