Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
linker
Commits
9b0b4ec5
Commit
9b0b4ec5
authored
Jun 19, 2018
by
Tobias Steiner
Browse files
Add some errors for testing
parent
cbb98bfb
Changes
1
Show whitespace changes
Inline
Side-by-side
src/neo4j-linker.ts
View file @
9b0b4ec5
...
...
@@ -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
;
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment