+2
-2
api/src/graphql/schema_builder.rs
+2
-2
api/src/graphql/schema_builder.rs
···
3262
3262
let (uri, cid) = match result {
3263
3263
atproto_client::com::atproto::repo::CreateRecordResponse::StrongRef { uri, cid, .. } => (uri, cid),
3264
3264
atproto_client::com::atproto::repo::CreateRecordResponse::Error(e) => {
3265
-
return Err(Error::new(format!("AT Protocol error: {:?}", e)));
3265
+
return Err(Error::new(format!("AT Protocol error: {} - {}", e.error.unwrap_or_default(), e.message.unwrap_or_default())));
3266
3266
}
3267
3267
};
3268
3268
···
3423
3423
let (uri, cid) = match result {
3424
3424
atproto_client::com::atproto::repo::PutRecordResponse::StrongRef { uri, cid, .. } => (uri, cid),
3425
3425
atproto_client::com::atproto::repo::PutRecordResponse::Error(e) => {
3426
-
return Err(Error::new(format!("AT Protocol error: {:?}", e)));
3426
+
return Err(Error::new(format!("AT Protocol error: {} - {}", e.error.unwrap_or_default(), e.message.unwrap_or_default())));
3427
3427
}
3428
3428
};
3429
3429