Skip to content

Commit cdaf38b

Browse files
committed
util/errors: Implement GitLab validation error to HTTP response conversion
1 parent e3d98b8 commit cdaf38b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/util/errors.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ impl From<crates_io_trustpub::github::validation::ValidationError> for BoxedAppE
238238
}
239239
}
240240

241+
impl From<crates_io_trustpub::gitlab::validation::ValidationError> for BoxedAppError {
242+
fn from(error: crates_io_trustpub::gitlab::validation::ValidationError) -> Self {
243+
bad_request(error)
244+
}
245+
}
246+
241247
// =============================================================================
242248
// Internal error for use with `chain_error`
243249

0 commit comments

Comments
 (0)