Browse Source

[server] Finish ErrorMessage decoding code

master
Starbeamrainbowlabs 3 years ago
parent
commit
e0bc536891
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      PixelHub-Server/PixelHub/PixelMessages/ErrorMessage.cs

+ 2
- 2
PixelHub-Server/PixelHub/PixelMessages/ErrorMessage.cs View File

@ -23,8 +23,8 @@ namespace PixelHub.Server.PixelMessages
protected set {
byte[] rawErrorCode = new byte[sizeof(uint)];
byte[] rawErrorMessage = new byte[value.Length - sizeof(uint)];
ErrorCode = BitConverter.ToUInt32(rawErrorCode);
Message = Encoding.UTF8.
ErrorCode = BitConverter.ToUInt32(rawErrorCode, 0);
Message = new string(Encoding.UTF8.GetChars(rawErrorMessage));
}
}