mirror of
https://gitee.com/BDWare/cm
synced 2025-01-10 09:54:03 +00:00
update docker configs
This commit is contained in:
parent
c84cd3fac0
commit
9f79db3a63
@ -799,6 +799,11 @@ public class ContractManager {
|
|||||||
try {
|
try {
|
||||||
if (c.getScriptStr().startsWith("/")) {
|
if (c.getScriptStr().startsWith("/")) {
|
||||||
c.startInfo.isYPK = true;
|
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[] str = c.getScriptStr().split("/");
|
||||||
String tmp = new File(dir + "/publicCompiled/ypkName").getAbsolutePath();
|
String tmp = new File(dir + "/publicCompiled/ypkName").getAbsolutePath();
|
||||||
String[] str2 = tmp.split("/");
|
String[] str2 = tmp.split("/");
|
||||||
@ -924,7 +929,7 @@ public class ContractManager {
|
|||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
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);
|
return JsonUtil.toJson(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ public class MultiContractRecorder extends StatusRecorder<MultiContractMeta> {
|
|||||||
CMTables.LastExeSeq.toString(), meta.getContractID()));
|
CMTables.LastExeSeq.toString(), meta.getContractID()));
|
||||||
meta.setLastExeSeq(lastExeSeq);
|
meta.setLastExeSeq(lastExeSeq);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
LOGGER.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user