git_store/errors

Types

pub type GitStoreError {
  ParsingError(String)
  HTTPError(String)
  NoFileFound(String)
  GitHubError
}

Constructors

  • ParsingError(String)
  • HTTPError(String)
  • NoFileFound(String)
  • GitHubError

Values

pub fn log_error(error: GitStoreError) -> GitStoreError

Log and return an error

pub fn log_http_error(
  res: response.Response(String),
  operation: String,
) -> GitStoreError

Helper for logging HTTP responses that aren’t successful

pub fn log_json_error(err: json.DecodeError) -> GitStoreError

Helper for logging and converting JSON decode errors

Search Document