Skip to content

Commit

Permalink
Fix exception handling in process mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstaeding committed May 27, 2024
1 parent 8abe41a commit 24ed7c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Jagr - SourceGrade.org
* Copyright (C) 2021-2022 Alexander Staeding
* Copyright (C) 2021-2022 Contributors
* Copyright (C) 2021-2024 Alexander Städing
* Copyright (C) 2021-2024 Contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand Down Expand Up @@ -67,7 +67,7 @@ class ProcessWorker(
sendRequest(job.request)
job.gradeCatching(jagr, ::receiveResult)
} catch (e: Exception) {
jagr.logger.error("Failed to send request to child process", e)
jagr.logger.error("Failed to send request to child process")
job.result.completeExceptionally(e)
} finally {
status = WorkerStatus.FINISHED
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Jagr - SourceGrade.org
* Copyright (C) 2021-2022 Alexander Staeding
* Copyright (C) 2021-2022 Contributors
* Copyright (C) 2021-2023 Alexander Städing
* Copyright (C) 2021-2023 Contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand Down Expand Up @@ -99,7 +99,7 @@ internal class RubricCollectorImpl(private val jagr: Jagr) : MutableRubricCollec
}
listener(result)
} catch (e: Exception) {
jagr.logger.error("An error occurred receiving result for grading job", e)
jagr.logger.error("An error occurred in grading job", e)
}
}
return job
Expand Down

0 comments on commit 24ed7c7

Please sign in to comment.