Commit 39136b91 authored by Brad King's avatar Brad King 💬 Committed by Kitware Robot
Browse files

Merge topic 'error-alternative'


 error: Look for 'error' field in Gitlab error objects

Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !153
parents 138b799b 5f36535a
......@@ -42,6 +42,7 @@ impl Error {
pub fn from_gitlab(value: Value) -> Self {
let msg = value
.or_else(|| value.pointer("/error"))
.and_then(|s| s.as_str())
.unwrap_or_else(|| "unknown error");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment