Improve error handling
Export the timeout kill error and use error instead of string in result struct.
This commit is contained in:
parent
fe9ca5ffcc
commit
8ccf842518
4 changed files with 18 additions and 23 deletions
|
|
@ -267,7 +267,7 @@ func runIteratorOnSession(it graph.Iterator, ses *Session) {
|
|||
}
|
||||
tags := make(map[string]graph.Value)
|
||||
it.TagResults(tags)
|
||||
cont := ses.SendResult(&GremlinResult{metaresult: false, err: "", val: nil, actualResults: &tags})
|
||||
cont := ses.SendResult(&GremlinResult{metaresult: false, err: nil, val: nil, actualResults: &tags})
|
||||
if !cont {
|
||||
break
|
||||
}
|
||||
|
|
@ -279,7 +279,7 @@ func runIteratorOnSession(it graph.Iterator, ses *Session) {
|
|||
}
|
||||
tags := make(map[string]graph.Value)
|
||||
it.TagResults(tags)
|
||||
cont := ses.SendResult(&GremlinResult{metaresult: false, err: "", val: nil, actualResults: &tags})
|
||||
cont := ses.SendResult(&GremlinResult{metaresult: false, err: nil, val: nil, actualResults: &tags})
|
||||
if !cont {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue