judge: 优化找不到数据时的错误信息

This commit is contained in:
undefined committed 2020-11-09 13:13:03 +08:00
1 parent dd4ecdb029
commit 8c65f89e55
6 files changed
+9 -12

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.1.20",
"version": "2.1.21",
"main": "package.json",
"author": "masnn",
"repository": "https://github.com/hydro-dev/Hydro.git",
@@ -15,7 +15,7 @@
"p-queue": "^6.6.1",
"shell-quote": "^1.7.2",
"supports-color": "^7.2.0",
"systeminformation": "^4.28.1",
"systeminformation": "^4.29.1",
"yargs": "^16.1.0"
},
"peerDependencies": {
+1 -1
View File
@@ -208,7 +208,7 @@ async function postInit() {
this.domainId = this.request.domainId;
this.lang = this.request.lang;
this.code = this.request.code;
this.data = this.request.data.toString();
this.data = (this.request.data || '').toString();
this.config = this.request.config;
this.next = getNext(this);
this.end = getEnd(this.domainId, this.rid);