Skip to content

Commit

Permalink
worker-sandbox: fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
spigaz committed Mar 10, 2024
1 parent 0d8d4da commit 124ea82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion worker-sandbox/src/d1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ pub async fn error(env: &Env) -> Result<http::Response<Body>> {
.expect_err("did not get error");

if let Error::D1(error) = error {
assert_eq!(error.cause(), "Error in line 1: THIS IS NOT VALID SQL: SqliteError: near \"THIS\": syntax error")
assert_eq!(
error.cause(),
"Error in line 1: THIS IS NOT VALID SQL: SqliteError: near \"THIS\": syntax error"
)
} else {
panic!("expected D1 error");
}
Expand Down

0 comments on commit 124ea82

Please sign in to comment.