aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-18 01:29:26 +0900
committernsfisis <nsfisis@gmail.com>2024-08-18 01:46:02 +0900
commit3e63c4baf62a9d383a5c62afee9b01684830bba9 (patch)
tree1a3c256c739f78e354836dd9c0fa5dac08fbf437 /backend
parent4969cc2e9f620c9858f39d22ec61a2c7e1690331 (diff)
downloadphperkaigi-2025-albatross-3e63c4baf62a9d383a5c62afee9b01684830bba9.tar.gz
phperkaigi-2025-albatross-3e63c4baf62a9d383a5c62afee9b01684830bba9.tar.zst
phperkaigi-2025-albatross-3e63c4baf62a9d383a5c62afee9b01684830bba9.zip
feat(backend): do now show error message except for compile error
Diffstat (limited to 'backend')
-rw-r--r--backend/game/hub.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/backend/game/hub.go b/backend/game/hub.go
index 21142a1..d385746 100644
--- a/backend/game/hub.go
+++ b/backend/game/hub.go
@@ -273,9 +273,8 @@ func (hub *gameHub) processTaskResults() {
taskResult.TaskPayload.UserID(),
nullable.NewNullableWithValue(int(taskResult.TaskPayload.TestcaseID)),
"internal_error",
- // TODO: inherit the command stdout/stderr?
"",
- "internal error",
+ "",
)
hub.sendSubmitResult(
taskResult.TaskPayload.UserID(),
@@ -289,8 +288,8 @@ func (hub *gameHub) processTaskResults() {
taskResult.TaskPayload.UserID(),
nullable.NewNullableWithValue(int(taskResult.TaskPayload.TestcaseID)),
aggregatedStatus,
- err1.Stdout,
- err1.Stderr,
+ "",
+ "",
)
} else {
hub.sendExecResult(