Skip to content

Commit 9d685c2

Browse files
committed
Better error reporting in the config example
At least it reported JSON parsing error and stopped Tarantool cases as it is supposed to do.
1 parent 548af2b commit 9d685c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,14 @@ Example
379379
ngx.say(cjson.encode(result))
380380
else
381381
ngx.status = 502
382-
ngx.say(res.body)
382+
ngx.say("Tarantool does not work")
383383
end
384384
385385
-- Finalize execution
386386
ngx.exit(ngx.OK)
387387
else
388-
ngx.status = 502
389-
ngx.say("Tarantool does not work")
388+
ngx.status = res.status
389+
ngx.say(res.body)
390390
end
391391
';
392392
}

0 commit comments

Comments
 (0)