Browse Source

Showing db error messages in the console

tags/v0.14.0^2
Shaun 3 months ago
parent
commit
e69f4d8cae
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/server/db/ioRethink.js

+ 5
- 3
src/server/db/ioRethink.js View File

@@ -150,7 +150,7 @@ module.exports = {
})
.run();
} catch (e) {
this.logError({
await this.logError({
sourceModule: 'ioRethink',
sourceMethod: 'setAsync',
error: e,
@@ -173,7 +173,7 @@ module.exports = {
.insert(value, { conflict })
.run();
} catch (e) {
this.logError({
await this.logError({
sourceModule: 'ioRethink',
sourceMethod: 'setFlat',
error: e,
@@ -233,7 +233,7 @@ module.exports = {
})
.run();
} catch (e) {
this.logError({
await this.logError({
sourceModule: 'ioRethink',
sourceMethod: 'append',
error: e,
@@ -279,5 +279,7 @@ module.exports = {
});
} else
process.exit();

throw new Error('Forcing crash');
}
};

Loading…
Cancel
Save