Skip to content

Commit

Permalink
fix: Make bsky_sdk::error public (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan authored Sep 4, 2024
1 parent eb22f50 commit 1538e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bsky-sdk/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Error types for the Bsky SDK.
use atrium_api::xrpc::error::XrpcErrorKind;
use atrium_api::xrpc::http::StatusCode;
use atrium_api::xrpc::Error as XrpcError;
Expand All @@ -23,6 +24,7 @@ pub enum Error {
Moderation(#[from] crate::moderation::Error),
}

/// Generic error type for XRPC errors.
#[derive(Error, Debug)]
pub enum GenericXrpcError {
Response {
Expand Down
2 changes: 1 addition & 1 deletion bsky-sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc = include_str!("../README.md")]
pub mod agent;
mod error;
pub mod error;
pub mod moderation;
pub mod preference;
pub mod record;
Expand Down

0 comments on commit 1538e8c

Please sign in to comment.