MainLogger: fix exception messages always reporting ErrorTypeToStringMap source if they have non-zero code

This commit is contained in:
Dylan K. Taylor 2020-05-19 22:43:44 +01:00
parent 3f1f135a59
commit b09379151a

View File

@ -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
}