Update error message tips

This commit is contained in:
Spxg
2025-05-25 15:42:02 +08:00
parent 4ca69466ad
commit 3e414e0c86
3 changed files with 9 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ async fn with_worker<F, T>(mut f: F) -> Result<T>
where
F: FnMut(&mut SQLiteWorker) -> Result<T>,
{
f(DB.lock().await.as_mut().ok_or(WorkerError::NotFound)?)
f(DB.lock().await.as_mut().ok_or(WorkerError::NotOpened)?)
}
async fn init_opfs_util() -> Result<&'static OpfsSAHPoolUtil> {