diff --git a/lib/services/api.dart b/lib/services/api.dart index 67e2a79..b285704 100644 --- a/lib/services/api.dart +++ b/lib/services/api.dart @@ -965,7 +965,9 @@ class Api { final j = _requireJson(raw, "GetOrderHistory"); if (!_ok(j)) { - throw StateError("GetOrderHistory failed: ${_err(j)}"); + final detail = j["DETAIL"] ?? j["detail"] ?? ""; + final debugLine = j["DEBUG_LINE"] ?? j["debug_line"] ?? ""; + throw StateError("GetOrderHistory failed: ${_err(j)} - $detail (line: $debugLine)"); } final ordersJson = j["ORDERS"] as List? ?? [];