Skip to content

Commit 2d2076c

Browse files
authored
Merge pull request #95 from tarantool/config-example-better-error-reporting
Better error reporting in the config example
2 parents 548af2b + 9d685c2 commit 2d2076c

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)