Skip to content
This repository was archived by the owner on Nov 8, 2020. It is now read-only.

Commit 9c92201

Browse files
committed
typo
1 parent 4fdb818 commit 9c92201

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

judger/error.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { STATUS_TEXT } = require('./status');
1+
const { STATUS_TEXTS } = require('./status');
22

33
class CompileError extends Error {
44
constructor(obj) {
@@ -9,7 +9,7 @@ class CompileError extends Error {
99
} else {
1010
this.stdout = obj.stdout || '';
1111
this.stderr = obj.stderr || '';
12-
this.status = obj.status ? STATUS_TEXT[obj.status] || '' : '';
12+
this.status = obj.status ? STATUS_TEXTS[obj.status] || '' : '';
1313
}
1414
this.type = 'CompileError';
1515
}

0 commit comments

Comments
 (0)