update docker configs

This commit is contained in:
CaiHQ 2022-05-05 13:28:29 +08:00
parent c84cd3fac0
commit 9f79db3a63
2 changed files with 7 additions and 2 deletions

View File

@ -799,6 +799,11 @@ public class ContractManager {
try {
if (c.getScriptStr().startsWith("/")) {
c.startInfo.isYPK = true;
File ypkFile = new File(c.getScriptStr());
if (!ypkFile.exists()) {
r = new ContractResult(Status.Error, new JsonPrimitive("no such ypk file"));
return JsonUtil.toJson(r);
}
String[] str = c.getScriptStr().split("/");
String tmp = new File(dir + "/publicCompiled/ypkName").getAbsolutePath();
String[] str2 = tmp.split("/");
@ -924,7 +929,7 @@ public class ContractManager {
}
} catch (Exception e) {
e.printStackTrace();
r = new ContractResult(Status.Error, new JsonPrimitive("exception occurs"));
r = new ContractResult(Status.Error, new JsonPrimitive("exception occurs: " + e.getMessage()));
return JsonUtil.toJson(r);
}
}

View File

@ -23,7 +23,7 @@ public class MultiContractRecorder extends StatusRecorder<MultiContractMeta> {
CMTables.LastExeSeq.toString(), meta.getContractID()));
meta.setLastExeSeq(lastExeSeq);
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(e);
}
}
}