fix properties error message

This commit is contained in:
Aiden McClelland
2021-10-19 16:39:35 -06:00
committed by Aiden McClelland
parent da0eecfad8
commit 4e2e65738f

View File

@@ -41,7 +41,7 @@ pub async fn fetch_properties(ctx: RpcContext, id: PackageId) -> Result<Value, E
false, false,
) )
.await? .await?
.map_err(|_| Error::new(eyre!("Properties failure!"), ErrorKind::Docker)) .map_err(|(_, e)| Error::new(eyre!("{}", e), ErrorKind::Docker))
.and_then(|a| Ok(a)) .and_then(|a| Ok(a))
} else { } else {
Ok(Value::Null) Ok(Value::Null)