forked from I2P_Developers/i2p.i2p
Datagram: Convert IOE to DFE and throw on datagram load error
rather than failing silently
This commit is contained in:
@ -97,7 +97,8 @@ public final class I2PDatagramDissector {
|
|||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log log = I2PAppContext.getGlobalContext().logManager().getLog(I2PDatagramDissector.class);
|
Log log = I2PAppContext.getGlobalContext().logManager().getLog(I2PDatagramDissector.class);
|
||||||
log.error("Caught IOException - INCONSISTENT STATE!", e);
|
log.error("Error loading datagram", e);
|
||||||
|
throw new DataFormatException("Error loading datagram", e);
|
||||||
//} catch(AssertionError e) {
|
//} catch(AssertionError e) {
|
||||||
// Log log = I2PAppContext.getGlobalContext().logManager().getLog(I2PDatagramDissector.class);
|
// Log log = I2PAppContext.getGlobalContext().logManager().getLog(I2PDatagramDissector.class);
|
||||||
// log.error("Assertion failed!", e);
|
// log.error("Assertion failed!", e);
|
||||||
|
Reference in New Issue
Block a user