[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 {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue