Commit bfdb76b
committed
Report output limit succeeded errors
The Leetcode system has a limit on how much output (i.e. to
stdout/stderr) a problem submission can produce. If a submission does
produce too much output (e.g. due to print statement debugging left in
by accident), Leetcode returns an error with `status_code` 13.
Currently, the `leetcode--show-submission-result` function does not
detect errors with this status code, resulting in an empty
`leetcode-result-XXX` buffer and no indication of failure. This
change adds detection of the output limit breach and notifies the user
in the results buffer that there was a problem. Note that we do not
list the problem that was running at the time of the error, since
that's probably not relevant to the problem of outputting to stdout et
al.1 parent e53812e commit bfdb76b
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
| 1084 | + | |
1084 | 1085 | | |
1085 | 1086 | | |
1086 | 1087 | | |
| |||
1112 | 1113 | | |
1113 | 1114 | | |
1114 | 1115 | | |
| 1116 | + | |
| 1117 | + | |
1115 | 1118 | | |
1116 | 1119 | | |
1117 | 1120 | | |
| |||
0 commit comments