add error handling for tasks
This commit is contained in:
5
lib/src/util.rs
Normal file
5
lib/src/util.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use crate::string::TCString;
|
||||
|
||||
pub(crate) fn err_to_tcstring(e: impl std::string::ToString) -> TCString<'static> {
|
||||
TCString::from(e.to_string())
|
||||
}
|
||||
Reference in New Issue
Block a user