This commit is contained in:
Oliver 2021-07-19 11:18:42 +10:00
parent 31ed4c6a7b
commit bf7a0e72bf
2 changed files with 3 additions and 3 deletions

View file

@ -128,10 +128,10 @@ Future<void> showServerError(String title, String description) async {
);
}
Future<void> showStatusCodeError(int status, {int expected = 200}) async {
Future<void> showStatusCodeError(int status) async {
String msg = L10().responseInvalid;
String extra = "Server responded with status code ${status}";
String extra = "${L10().statusCode}: ${status}";
switch (status) {
case 400: