fix(eap): output state on error
This commit is contained in:
parent
97ea3fad1d
commit
e71f0b3d80
@ -3,7 +3,7 @@
|
|||||||
import * as NodeCache from 'node-cache';
|
import * as NodeCache from 'node-cache';
|
||||||
import debug from 'debug';
|
import debug from 'debug';
|
||||||
import { makeid } from '../../helpers';
|
import { makeid } from '../../helpers';
|
||||||
import { IPacket, IPacketHandler, IPacketHandlerResult, PacketResponseCode } from '../../types/PacketHandler';
|
import { IPacket, IPacketHandler, IPacketHandlerResult } from '../../types/PacketHandler';
|
||||||
import { IEAPMethod } from '../../types/EAPMethod';
|
import { IEAPMethod } from '../../types/EAPMethod';
|
||||||
import { buildEAPResponse, decodeEAPHeader } from './eap/EAPHelper';
|
import { buildEAPResponse, decodeEAPHeader } from './eap/EAPHelper';
|
||||||
|
|
||||||
@ -130,7 +130,12 @@ export class EAPPacketHandler implements IPacketHandler {
|
|||||||
// silently ignore;
|
// silently ignore;
|
||||||
return {};
|
return {};
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('decoding of (generic) EAP package failed', msg, err);
|
console.error(
|
||||||
|
'decoding of (generic) EAP package failed',
|
||||||
|
msg,
|
||||||
|
err,
|
||||||
|
this.eapConnectionStates.get(stateID)
|
||||||
|
);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user