mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-24 06:26:16 +00:00
chore[command]: command log
This commit is contained in:
@@ -15,6 +15,7 @@ package com.zfoo.monitor.util;
|
||||
|
||||
import com.zfoo.monitor.*;
|
||||
import com.zfoo.net.util.NetUtils;
|
||||
import com.zfoo.protocol.exception.RunException;
|
||||
import com.zfoo.protocol.util.IOUtils;
|
||||
import com.zfoo.protocol.util.StringUtils;
|
||||
import com.zfoo.protocol.util.UuidUtils;
|
||||
@@ -322,7 +323,7 @@ public abstract class OSUtils {
|
||||
|
||||
// 返回编译是否成功
|
||||
if (exitValue != 0) {
|
||||
throw new RuntimeException("error executing command, return code:" + exitValue);
|
||||
throw new RunException("error executing command exitValue:[{}] result:[{}]", exitValue, result);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user