mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-21 18:24:21 +01:00
fix event error return when decoding fails
This commit is contained in:
@@ -103,7 +103,7 @@ impl<'a> RelayMessage<'a> {
|
|||||||
let subid = &msg[start..subid_end].trim().trim_matches('"');
|
let subid = &msg[start..subid_end].trim().trim_matches('"');
|
||||||
return Ok(Self::event(msg, subid));
|
return Ok(Self::event(msg, subid));
|
||||||
} else {
|
} else {
|
||||||
return Ok(Self::event(msg, "fixme"));
|
return Err(Error::DecodeFailed("Invalid EVENT format".into()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user