Now printing result of operations executed from command line
h3rald h3rald@h3rald.com
Wed, 06 May 2020 10:27:15 +0200
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/litestore.nim
→
src/litestore.nim
@@ -60,8 +60,10 @@ req.hostname = "<cli>"
req.url = parseUri("$1://$2:$3/$4" % @["http", "localhost", "9500", uri]) let resp = req.process(LS) if resp.code.int < 300 and resp.code.int >= 200: + echo resp.content quit(0) else: + echo resp.content quit(resp.code.int) # stores: {