Skip to content

Commit

Permalink
Merge pull request #1828 from rajatjindal/fix-error-msg
Browse files Browse the repository at this point in the history
sqlite sdk throws "database full" error when too many connections are opened
  • Loading branch information
rajatjindal authored Oct 9, 2023
2 parents 7b51c1f + 835e314 commit b1f9e41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/sqlite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})
}))
}

Expand Down

0 comments on commit b1f9e41

Please sign in to comment.