mirror of
https://gitee.com/BDWare/cm
synced 2025-01-10 01:44:04 +00:00
update docker configs
This commit is contained in:
parent
c84cd3fac0
commit
9f79db3a63
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user