From c9fcb05903fd3009b6885a88974fb132f94803df Mon Sep 17 00:00:00 2001 From: Petar Vujovic Date: Thu, 15 Aug 2024 12:22:26 +0200 Subject: [PATCH] fix(tasks): wrap error variant --- tasks/src/adv_sqlite.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/src/adv_sqlite.rs b/tasks/src/adv_sqlite.rs index e6016c49e..3891d1813 100644 --- a/tasks/src/adv_sqlite.rs +++ b/tasks/src/adv_sqlite.rs @@ -835,7 +835,7 @@ impl TaskDb { Ok(q) => q, Err(e) => { return match e { - rusqlite::Error::QueryReturnedNoRows => TaskManagerError::NoData, + rusqlite::Error::QueryReturnedNoRows => Err(TaskManagerError::NoData), e => e.into(), } }