[server] Finish ErrorMessage decoding code

This commit is contained in:
Starbeamrainbowlabs 2017-05-18 18:55:18 +01:00
parent bed9148075
commit e0bc536891

View file

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