#3258: Only show detailed connect exception to admins

This commit is contained in:
md_5 2022-04-09 08:59:01 +10:00
parent 34d416a4e8
commit 862bb2ac72
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -372,7 +372,7 @@ public final class UserConnection implements ProxiedPlayer
private String connectionFailMessage(Throwable cause)
{
return Util.exception( cause, false );
return groups.contains( "admin" ) ? Util.exception( cause, false ) : cause.getClass().getName();
}
@Override