mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
MainLogger: fix exception messages always reporting ErrorTypeToStringMap source if they have non-zero code
This commit is contained in:
parent
3f1f135a59
commit
b09379151a
@ -172,7 +172,7 @@ class MainLogger extends \AttachableThreadedLogger implements \BufferedLogger{
|
||||
$errno = $e->getCode();
|
||||
try{
|
||||
$errno = ErrorTypeToStringMap::get($errno);
|
||||
}catch(\InvalidArgumentException $e){
|
||||
}catch(\InvalidArgumentException $ex){
|
||||
//pass
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user