Commit 9b0b4ec5 authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Add some errors for testing

parent cbb98bfb
...@@ -17,7 +17,6 @@ export class Linker { ...@@ -17,7 +17,6 @@ export class Linker {
nconf.get('neo4j:config:password'), nconf.get('neo4j:config:password'),
), ),
); );
} }
/** /**
...@@ -47,16 +46,14 @@ export class Linker { ...@@ -47,16 +46,14 @@ export class Linker {
}); });
// get a new session // get a new session
this.logger.info('Try to get a session'); this.logger.info('Try to get a session');
this.logger.info(query);
const session = this.driver.session(); const session = this.driver.session();
this.logger.info('Try to build network'); this.logger.info('Try to build network');
session.run(query).then(() => { session.run(query).then(() => {
session.close(); session.close();
resolve(); resolve();
}).catch((err) => { }).catch((err) => {
setTimeout(() => { throw err;
session.close();
reject(`Error while saving a connection to neo4j ${JSON.stringify(err)}`);
}, 500);
}); });
}); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment