Skip to content

Commit

Permalink
Clearer error message
Browse files Browse the repository at this point in the history
  • Loading branch information
marcua committed Nov 5, 2024
1 parent 11dd862 commit c237ac0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hosted_db/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn query_sqlite(
if code.code == rusqlite::ErrorCode::ReadOnly && code.extended_code == 8 =>
{
AybError::NoWriteAccessError {
message: "Attempted to write to a read-only database".to_string(),
message: "Attempted to write to database while in read-only mode".to_string(),
}
}
_ => AybError::from(err),
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e_tests/permissions_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub async fn test_permissions(
"INSERT INTO test_table (fname, lname) VALUES (\"first permissions2\", \"last permissions2\");",
FIRST_ENTITY_DB,
"table",
"Error: Attempted to write to a read-only database",
"Error: Attempted to write to database while in read-only mode",
)?;
list_databases(
&config_path,
Expand Down

0 comments on commit c237ac0

Please sign in to comment.