display packet ID in hexadecimal
All checks were successful
Build & Test / nix-build (push) Successful in 1m34s
All checks were successful
Build & Test / nix-build (push) Successful in 1m34s
This commit is contained in:
parent
6495a246e0
commit
9ec63487c2
@ -80,8 +80,8 @@ alias ElixirSense.Log
|
|||||||
case connstate.handle(packet, version, state) do
|
case connstate.handle(packet, version, state) do
|
||||||
:ok -> state
|
:ok -> state
|
||||||
{:error, reason} ->
|
{:error, reason} ->
|
||||||
Logger.error("Error handling packet with ID #{id} in state #{connstate}: #{reason}")
|
Logger.error("Error handling packet with ID #{inspect(id, base: :hex)} in state #{connstate}: #{reason}")
|
||||||
send(self(), {:disconnect, "§cError handling packet #{id}:\n#{reason}"})
|
send(self(), {:disconnect, "§cError handling packet #{inspect(id, base: :hex)}:\n#{reason}"})
|
||||||
state
|
state
|
||||||
newstate ->
|
newstate ->
|
||||||
if is_map(newstate) do
|
if is_map(newstate) do
|
||||||
@ -93,8 +93,8 @@ alias ElixirSense.Log
|
|||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
e ->
|
e ->
|
||||||
Logger.error("Error handling packet with ID #{id} in state #{connstate}: #{Exception.format(:error, e, __STACKTRACE__)}")
|
Logger.error("Error handling packet with ID #{inspect(id, base: :hex)} in state #{connstate}: #{Exception.format(:error, e, __STACKTRACE__)}")
|
||||||
send(self(), {:disconnect, "§cError handling packet #{id}:\n#{Exception.format(:error, e, __STACKTRACE__)}"})
|
send(self(), {:disconnect, "§cError handling packet #{inspect(id, base: :hex)}:\n#{Exception.format(:error, e, __STACKTRACE__)}"})
|
||||||
state
|
state
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user