mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-08-04 15:18:17 +00:00
refactor: function! macro for error context (#317)
Deletes any now-superfluous `const NAME: &'static str = "name";` definitions. This gives a path to the function that is being called, which is useful for debugging errors. It replaces the necessity of implementing `const NAME: &'static str = "name";` in every function that wants to use these macros (or coming up with a custom context).
This commit is contained in:
parent
9355ae5b3d
commit
6588f7cdc7
8 changed files with 35 additions and 103 deletions
|
@ -129,7 +129,7 @@ fn truncated() {
|
|||
|
||||
expect![[r#"
|
||||
Error {
|
||||
context: "PreconnectionBlob",
|
||||
context: "<ironrdp_pdu::pcb::PreconnectionBlob as ironrdp_pdu::PduDecode>::decode",
|
||||
kind: NotEnoughBytes {
|
||||
received: 0,
|
||||
expected: 239,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue