mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-14 19:25:27 +00:00
Cleanup
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user