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 {
nconf.get('neo4j:config:password'),
),
);
}
/**
......@@ -47,16 +46,14 @@ export class Linker {
});
// get a new session
this.logger.info('Try to get a session');
this.logger.info(query);
const session = this.driver.session();
this.logger.info('Try to build network');
session.run(query).then(() => {
session.close();
resolve();
}).catch((err) => {
setTimeout(() => {
session.close();
reject(`Error while saving a connection to neo4j ${JSON.stringify(err)}`);
}, 500);
throw err;
});
});
......
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