We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a479042 commit dc6423aCopy full SHA for dc6423a
mythril/src/error.rs
@@ -84,6 +84,7 @@ pub enum Error {
84
InvalidDevice,
85
NotImplemented,
86
DeviceError,
87
+ MissingDevice,
88
}
89
90
impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for Error {
mythril/src/vm.rs
@@ -548,9 +548,10 @@ impl VirtualMachine {
548
// Just ignore writes to unknown ports
549
Ok(())
550
551
- _ => Err(Error::MissingDevice(
552
- "Unable to dispatch event".into(),
553
- )),
+ _ => {
+ error!("Unable to dispatch event");
+ Err(Error::MissingDevice)
554
+ }
555
};
556
557
0 commit comments