analyze exit value

This commit is contained in:
idk
2022-08-21 19:34:29 -04:00
parent 3ee2c7a10d
commit b1bfd39327
2 changed files with 4 additions and 2 deletions

View File

@ -417,7 +417,8 @@ public class I2PFirefox {
System.out.println("I2PFirefox");
try{
System.out.println("Waiting for I2PFirefox to close...");
p.waitFor();
int exit = p.waitFor();
System.out.println("I2PFirefox exited with value: "+exit);
}catch(Exception e){
System.out.println("Error: "+e.getMessage());
}