Skip to content

Commit ab0d9ab

Browse files
committed
add libsql_wal error to sqld
1 parent 64c4d22 commit ab0d9ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libsql-server/src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ pub enum Error {
124124
AttachInMigration,
125125
#[error("join failure: {0}")]
126126
RuntimeTaskJoinError(#[from] tokio::task::JoinError),
127+
#[error("wal error: {0}")]
128+
LibsqlWal(#[from] libsql_wal::error::Error),
127129
}
128130

129131
impl AsRef<Self> for Error {
@@ -218,6 +220,7 @@ impl IntoResponse for &Error {
218220
HasLinkedDbs(_) => self.format_err(StatusCode::BAD_REQUEST),
219221
AttachInMigration => self.format_err(StatusCode::BAD_REQUEST),
220222
RuntimeTaskJoinError(_) => self.format_err(StatusCode::INTERNAL_SERVER_ERROR),
223+
LibsqlWal(_) => self.format_err(StatusCode::INTERNAL_SERVER_ERROR),
221224
}
222225
}
223226
}

0 commit comments

Comments
 (0)