Skip to content

Commit

Permalink
Correct docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Jun 2, 2018
1 parent fce8dd2 commit 2a9b57f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ impl From<IoError> for PayloadError {
}
}

/// `InternalServerError` for `PayloadError`
/// `PayloadError` returns two possible results:
///
/// - `Overflow` returns `PayloadTooLarge`
/// - Other errors returns `BadRequest`
impl ResponseError for PayloadError {
fn error_response(&self) -> HttpResponse {
match *self {
Expand Down

0 comments on commit 2a9b57f

Please sign in to comment.