mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 00:07:12 -07:00
Cleaned up sign exception
This commit is contained in:
parent
76cba6ed7a
commit
1ab53f5bad
2 changed files with 2 additions and 6 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue