Skip to content

Commit

Permalink
document Promise.json error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jul 31, 2024
1 parent 9751997 commit a78d9f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ Example:
Promise.json(http, "https://api.chucknorris.io/jokes/random"):next(function(joke)
assert(type(joke.value) == "string")
end, function(err)
-- request not successful or response-status not 200
print("something went wrong while calling the api: " .. err)
end)
```
Expand Down

0 comments on commit a78d9f7

Please sign in to comment.