Skip to content

Commit 2e59c5a

Browse files
committed
Just forward exceptions to the caller in BuildInformationProcessor#findKernelMajorVersion
1 parent 681ba1e commit 2e59c5a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/processor/java/org/truffleruby/processor/BuildInformationProcessor.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,8 @@ public synchronized void init(ProcessingEnvironment env) {
6868
}
6969
}
7070

71-
private String findKernelMajorVersion() {
72-
String kernelVersion = "";
73-
try {
74-
kernelVersion = runCommand("uname -r");
75-
} catch (IOException e) {
76-
} catch (InterruptedException e) {
77-
e.printStackTrace();
78-
}
79-
71+
private String findKernelMajorVersion() throws IOException, InterruptedException {
72+
final String kernelVersion = runCommand("uname -r");
8073
return kernelVersion.split(Pattern.quote("."))[0];
8174
}
8275

0 commit comments

Comments
 (0)