add error handling for tasks

This commit is contained in:
Dustin J. Mitchell
2022-02-01 00:35:02 +00:00
parent 2dc9358085
commit b675cef99c
6 changed files with 93 additions and 52 deletions

5
lib/src/util.rs Normal file
View 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())
}