mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-20 06:24:12 +00:00
chore[exception]: convert exception type
This commit is contained in:
@@ -322,12 +322,12 @@ public abstract class OSUtils {
|
||||
|
||||
// 返回编译是否成功
|
||||
if (exitValue != 0) {
|
||||
throw new Exception("执行命令错误,返回码:" + exitValue);
|
||||
throw new RuntimeException("error executing command, return code:" + exitValue);
|
||||
}
|
||||
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
logger.error("命令执行未知异常", e);
|
||||
logger.error("unknown exception in command execution", e);
|
||||
} finally {
|
||||
if (process != null) {
|
||||
process.destroy();
|
||||
|
||||
Reference in New Issue
Block a user