add context to unwrap

This commit is contained in:
Kasper Juul Hermansen 2023-02-15 22:07:54 +01:00
parent b6caf27854
commit e0db105cba
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -1,6 +1,7 @@
use std::sync::Arc; use std::sync::Arc;
use dagger_core::introspection::{FullType, InputValue, TypeRef, __TypeKind}; use dagger_core::introspection::{FullType, InputValue, TypeRef, __TypeKind};
use eyre::ContextCompat;
use crate::utility::OptionExt; use crate::utility::OptionExt;
@ -87,6 +88,7 @@ impl CommonFunctions {
.map(|t| t.clone()) .map(|t| t.clone())
.map(|t| *t) .map(|t| *t)
.map(|t| self.format_type(&t, input)) .map(|t| self.format_type(&t, input))
.context("could not get inner type of list")
.unwrap(); .unwrap();
representation = representation =