[server] Finish ErrorMessage decoding code
This commit is contained in:
parent
bed9148075
commit
e0bc536891
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue