mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
Add generated error code to exceptions
This commit is contained in:
@@ -30,6 +30,6 @@ public class ErrorDto {
|
||||
}
|
||||
|
||||
public static ErrorDto from(ExceptionWithContext exception) {
|
||||
return new ErrorDto(MDC.get("transaction_id"), "todo", exception.getContext(), exception.getMessage());
|
||||
return new ErrorDto(MDC.get("transaction_id"), exception.getCode(), exception.getContext(), exception.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user