From e0db105cbabd68296a209dbb7588370a5c74a3c8 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 15 Feb 2023 22:07:54 +0100 Subject: [PATCH] add context to unwrap --- crates/dagger-codegen/src/functions.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/dagger-codegen/src/functions.rs b/crates/dagger-codegen/src/functions.rs index e5c1cf1..a55b50d 100644 --- a/crates/dagger-codegen/src/functions.rs +++ b/crates/dagger-codegen/src/functions.rs @@ -1,6 +1,7 @@ use std::sync::Arc; use dagger_core::introspection::{FullType, InputValue, TypeRef, __TypeKind}; +use eyre::ContextCompat; use crate::utility::OptionExt; @@ -87,6 +88,7 @@ impl CommonFunctions { .map(|t| t.clone()) .map(|t| *t) .map(|t| self.format_type(&t, input)) + .context("could not get inner type of list") .unwrap(); representation =