|
|
@@ -34,8 +34,7 @@ public class GlobalExceptionHandler {
|
|
|
@ResponseBody
|
|
|
public Map<String, Object> serviceExceptionHandler(BusinessException e) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("error", e.getError());
|
|
|
- map.put("message", e.getMessage());
|
|
|
+ map.put("error", e.getMessage());
|
|
|
map.put("code", -1);
|
|
|
return map;
|
|
|
}
|