Skip to content

Commit 8b6cda0

Browse files
committed
Project Schedule api should return Problem model
1 parent 80f0b96 commit 8b6cda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JoinRpg.Portal/Controllers/XGameApi/ProjectScheduleController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public async Task<ActionResult<List<ProgramItemInfoApi>>> GetSchedule([FromRoute
4343
}
4444
if (check.Any())
4545
{
46-
throw new Exception($"Error {check.Select(x => x.ToString()).JoinStrings(" ,")}");
46+
return Problem(detail: check.Select(x => x.ToString()).JoinStrings(" ,"), statusCode: 400);
4747
}
4848

4949
var characters = await ProjectRepository.GetCharacters(projectId);

0 commit comments

Comments
 (0)