添加详细错误日志以排查任务数据格式错误
This commit is contained in:
parent
fa4cd70bc8
commit
9056099413
@ -202,10 +202,10 @@ public class TaskController {
|
||||
taskService.updateTask(id, task, userId);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("解析任务数据失败", e);
|
||||
throw new com.designhub.exception.BusinessException(com.designhub.common.ResultCode.PARAM_ERROR, "任务数据格式错误");
|
||||
log.error("解析任务数据失败: taskId={}, error={}", id, e.getMessage(), e);
|
||||
throw new com.designhub.exception.BusinessException(com.designhub.common.ResultCode.PARAM_ERROR, "任务数据格式错误: " + e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
return Result.success("更新成功");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user