diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-07-17 16:22:54 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-07-17 16:23:42 +0200 |
commit | 8a7897f28c63812afaabe26ae759dfdcec01f9e2 (patch) | |
tree | db0d3d3d6e01ee341a338d0416574b2941700e0a /src/discord.rs | |
parent | 296efd815041ba583d255220e985286d8c1d4ddb (diff) | |
download | ezau-8a7897f28c63812afaabe26ae759dfdcec01f9e2.tar.gz ezau-8a7897f28c63812afaabe26ae759dfdcec01f9e2.tar.bz2 ezau-8a7897f28c63812afaabe26ae759dfdcec01f9e2.zip |
turn HTTP status code to error
If we don't do this, we end up trying to decode the error page as the
expected JSON response, which usually ends up with a "missing permalink"
field, which doesn't tell us a lot.
This way, we get a proper 404/500 error.
Diffstat (limited to 'src/discord.rs')
0 files changed, 0 insertions, 0 deletions