Skip to content

Commit

Permalink
#63 Fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed May 17, 2024
1 parent ebbc75e commit fa26221
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ class BasicWorkspaceService(
event: Workspace.Submission.Draft,
): Workspace.Submission {
val homework = homeworks.getById(id.homework)
.orNotFound("Homework with id ${id.homework.number} not found")
.orNotFound("Homework with id ${id.homework} not found")
if (homework.deadlineMoment.isBefore(OffsetDateTime.now(clock))) {
throw DeadlinePassedException(
buildString {
append("Deadline for homework with ")
append("id ${homework.id.number} ")
append("id ${homework.id} ")
append("\"${homework.title}\" was passed")
},
)
Expand Down

0 comments on commit fa26221

Please sign in to comment.