2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 08:17:11 -07:00

Cleaned up sign exception

This commit is contained in:
Erik C. Thauvin 2023-09-29 05:41:32 -07:00
parent 76cba6ed7a
commit 1ab53f5bad
2 changed files with 2 additions and 6 deletions

View file

@ -348,12 +348,12 @@ public class PublishOperation extends AbstractOperation<PublishOperation> {
try {
process.waitFor();
} catch (InterruptedException e) {
throw new SignException(file, e);
throw new SignException(file, new InterruptedException(e.getMessage()));
}
if (process.exitValue() != 0) {
var error = FileUtils.readString(process.getErrorStream());
throw new SignException(file);
throw new SignException(file, new IOException(error));
}
return FileUtils.readString(process.getInputStream());
}

View file

@ -19,10 +19,6 @@ public class SignException extends RuntimeException {
private final File file_;
private final String reason_;
public SignException(File file) {
this(file, null);
}
public SignException(File file, Throwable reason) {
super("An error occurred while signing '" + file, reason);
file_ = file;