diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-09 23:02:58 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-09 23:02:58 -0800 |
commit | e47446459d7a732efdad46b47b7108eef45539a2 (patch) | |
tree | 8c3d41da2241074b0b84f8dfabbc63048615d87a /src/main/java/org | |
parent | 8e41d3c5eb9d7bfe288ef950b4ac3e4c33c6f1e7 (diff) | |
download | trackermap-server-e47446459d7a732efdad46b47b7108eef45539a2.tar.gz trackermap-server-e47446459d7a732efdad46b47b7108eef45539a2.tar.bz2 trackermap-server-e47446459d7a732efdad46b47b7108eef45539a2.zip |
Print HEX tag
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java index dfaedd695..dc558147a 100644 --- a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 - 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2013 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,7 +91,7 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder { private static int getTagLength(int tag) { Integer length = TAG_LENGTH_MAP.get(tag); if (length == null) { - throw new IllegalArgumentException("Unknown tag: " + tag); + throw new IllegalArgumentException(String.format("Unknown tag: 0x%02x", tag)); } return length; } |