From 4b51fef3521e5b0bf338f631ad99e7affe9a1837 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 21 Jul 2017 12:16:44 +0500 Subject: Simplified error string construction --- src/org/traccar/database/PermissionsManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java index 4646071aa..5f83a1274 100644 --- a/src/org/traccar/database/PermissionsManager.java +++ b/src/org/traccar/database/PermissionsManager.java @@ -333,8 +333,7 @@ public class PermissionsManager { return; } } - throw new SecurityException(object.substring(0, 1).toUpperCase() + object.substring(1) - + " access denied"); + throw new SecurityException("Type " + object + " access denied"); } } } -- cgit v1.2.3