mirror of
https://github.com/immich-app/immich.git
synced 2025-11-02 09:07:42 +09:00
feat(server): better api error messages (for unhandled exceptions) (#4817)
* feat(server): better error messages * chore: open api * chore: remove debug log * fix: syntax error * fix: e2e test
This commit is contained in:
6
mobile/openapi/lib/api/system_config_api.dart
generated
6
mobile/openapi/lib/api/system_config_api.dart
generated
@@ -58,7 +58,7 @@ class SystemConfigApi {
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'GET /system-config/defaults' operation and returns the [Response].
|
||||
Future<Response> getDefaultsWithHttpInfo() async {
|
||||
Future<Response> getConfigDefaultsWithHttpInfo() async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/system-config/defaults';
|
||||
|
||||
@@ -83,8 +83,8 @@ class SystemConfigApi {
|
||||
);
|
||||
}
|
||||
|
||||
Future<SystemConfigDto?> getDefaults() async {
|
||||
final response = await getDefaultsWithHttpInfo();
|
||||
Future<SystemConfigDto?> getConfigDefaults() async {
|
||||
final response = await getConfigDefaultsWithHttpInfo();
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user