We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d980ce1 + 5da9acb commit 48238beCopy full SHA for 48238be
1 file changed
libsql/src/database/builder.rs
@@ -381,6 +381,10 @@ cfg_replication! {
381
.await
382
.map_err(|err| crate::Error::Sync(err.into()))?;
383
384
+ if res.status() == http::StatusCode::UNAUTHORIZED {
385
+ return Err(crate::Error::Sync("Unauthorized".into()));
386
+ }
387
+
388
if matches!(p, SyncProtocol::V2) {
389
if !res.status().is_success() {
390
let status = res.status();
0 commit comments