Skip to content

Commit

Permalink
fix: improving error message from opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen authored Jul 15, 2023
1 parent 504cd5d commit 41cbed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Runtime/Common/MessageProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static void ThrowIfBadOpCode(int opcode, bool finished, bool opCodeContinuation)
if (opcode == 2 || opcode == 8)
return;

throw new InvalidDataException("Expected opcode to be binary or close");
throw new InvalidDataException($"Unexpected opcode {opcode}");
}
}

Expand Down

0 comments on commit 41cbed0

Please sign in to comment.