diff options
| author | Zeyla Hellyer <[email protected]> | 2017-02-11 21:10:20 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-02-11 21:10:20 -0800 |
| commit | 7e254c5c6098bb1a47bac26c9895098a46cdc53f (patch) | |
| tree | d8adb2ff9d709ae32f12286f1432996011367cbf /examples/06_command_framework/src | |
| parent | Update voice example to latest changes (diff) | |
| download | serenity-7e254c5c6098bb1a47bac26c9895098a46cdc53f.tar.xz serenity-7e254c5c6098bb1a47bac26c9895098a46cdc53f.zip | |
Handle unsuccessful responses before decoding
Instead of assuming every request is successful, check that the class of
the status is successful (2xx), and if not, return a
`ClientError::InvalidRequest`, which is a renamed
`ClientError::UnexpectedStatusCode`.
Diffstat (limited to 'examples/06_command_framework/src')
0 files changed, 0 insertions, 0 deletions