From 835e314e4e926aee1ab971eea49605232f0cc7ef Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Sun, 1 Oct 2023 14:17:46 +0530 Subject: [PATCH] sent too many connections opened error instead of sqlite db full Signed-off-by: Rajat Jindal --- crates/sqlite/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/sqlite/src/lib.rs b/crates/sqlite/src/lib.rs index 09a299af6..d61980908 100644 --- a/crates/sqlite/src/lib.rs +++ b/crates/sqlite/src/lib.rs @@ -83,9 +83,9 @@ impl spin_world::sqlite::Host for SqliteDispatch { .await .and_then(|conn| conn.ok_or(spin_world::sqlite::Error::NoSuchDatabase)) .and_then(|conn| { - self.connections - .push(conn) - .map_err(|()| spin_world::sqlite::Error::DatabaseFull) + self.connections.push(conn).map_err(|()| { + spin_world::sqlite::Error::Io("too many connections opened".to_string()) + }) })) }