We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b51c1f commit 835e314Copy full SHA for 835e314
crates/sqlite/src/lib.rs
@@ -83,9 +83,9 @@ impl spin_world::sqlite::Host for SqliteDispatch {
83
.await
84
.and_then(|conn| conn.ok_or(spin_world::sqlite::Error::NoSuchDatabase))
85
.and_then(|conn| {
86
- self.connections
87
- .push(conn)
88
- .map_err(|()| spin_world::sqlite::Error::DatabaseFull)
+ self.connections.push(conn).map_err(|()| {
+ spin_world::sqlite::Error::Io("too many connections opened".to_string())
+ })
89
}))
90
}
91
0 commit comments