mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:18:41 +00:00
fix(remote_judger): status reporting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
da02425215
commit
5531233763
@ -237,7 +237,7 @@ export default class CodeforcesProvider implements IBasicProvider {
|
|||||||
end
|
end
|
||||||
) {
|
) {
|
||||||
if (!(await this.ensureLogin())) {
|
if (!(await this.ensureLogin())) {
|
||||||
end({
|
await end({
|
||||||
error: true,
|
error: true,
|
||||||
status: 'Judgment Failed',
|
status: 'Judgment Failed',
|
||||||
message: 'Login failed',
|
message: 'Login failed',
|
||||||
|
@ -208,7 +208,7 @@ export default class LuoguProvider implements IBasicProvider {
|
|||||||
end
|
end
|
||||||
) {
|
) {
|
||||||
if (!(await this.ensureLogin())) {
|
if (!(await this.ensureLogin())) {
|
||||||
end({
|
await end({
|
||||||
error: true,
|
error: true,
|
||||||
status: 'Judgment Failed',
|
status: 'Judgment Failed',
|
||||||
message: 'Login failed',
|
message: 'Login failed',
|
||||||
@ -218,7 +218,7 @@ export default class LuoguProvider implements IBasicProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (code.length < 10) {
|
if (code.length < 10) {
|
||||||
end({
|
await end({
|
||||||
error: true,
|
error: true,
|
||||||
status: 'Compile Error',
|
status: 'Compile Error',
|
||||||
message: 'Code too short',
|
message: 'Code too short',
|
||||||
|
Loading…
Reference in New Issue
Block a user