Add String place-holder event type, public facing error message

This commit is contained in:
Dominik Werder
2022-02-15 22:03:56 +01:00
parent a9f9d1ada6
commit 502b8fb6ae
23 changed files with 278 additions and 115 deletions

View File

@@ -678,9 +678,11 @@ impl Stream for DataApiPython3DataStream {
Err(e) => return Err(e)?,
};
let entry = match entry_res {
MatchingConfigEntry::None => return Err(Error::with_msg("no config entry found"))?,
MatchingConfigEntry::None => {
return Err(Error::with_public_msg("no config entry found"))?
}
MatchingConfigEntry::Multiple => {
return Err(Error::with_msg("multiple config entries found"))?
return Err(Error::with_public_msg("multiple config entries found"))?
}
MatchingConfigEntry::Entry(entry) => entry.clone(),
};