fixes #844
This commit is contained in:
parent
4b94aba6de
commit
47e4f9698c
4 changed files with 21 additions and 7 deletions
|
|
@ -69,3 +69,15 @@ proc semiProblem() =
|
|||
if false: echo "aye"; echo "indeed"
|
||||
|
||||
semiProblem()
|
||||
|
||||
|
||||
# bug #844
|
||||
|
||||
import json
|
||||
proc parseResponse(): PJsonNode =
|
||||
result = % { "key1": % { "key2": % "value" } }
|
||||
for key, val in result["key1"]:
|
||||
var excMsg = key & "("
|
||||
if (var n=result["key2"]; n != nil):
|
||||
excMsg &= n.str
|
||||
raise newException(ESynch, excMsg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue