Skip to content

Commit

Permalink
Merge pull request #149
Browse files Browse the repository at this point in the history
Add name of property to exception
  • Loading branch information
DennisDyallo authored Sep 18, 2024
2 parents 7c16ab6 + f035cab commit cb6d92c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public T GetProperty<T>(CmDeviceProperty property)
{
return (T)value!;
}
throw new KeyNotFoundException();
throw new KeyNotFoundException(property.ToString());
}

public SafeFileHandle OpenDevice()
Expand Down

0 comments on commit cb6d92c

Please sign in to comment.