aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-21 12:16:44 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-21 12:16:44 +0500
commit4b51fef3521e5b0bf338f631ad99e7affe9a1837 (patch)
treeae2c787226a7a627cc81bbb421be48c534f46615 /src/org
parentf77912f14ed17bfbe533b664b6b82154c80e3b58 (diff)
downloadtrackermap-server-4b51fef3521e5b0bf338f631ad99e7affe9a1837.tar.gz
trackermap-server-4b51fef3521e5b0bf338f631ad99e7affe9a1837.tar.bz2
trackermap-server-4b51fef3521e5b0bf338f631ad99e7affe9a1837.zip
Simplified error string construction
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/database/PermissionsManager.java3
1 files changed, 1 insertions, 2 deletions
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");
}
}
}