This commit is contained in:
132ikl 2025-03-10 19:31:40 -04:00
parent 8a60e7814a
commit 9cbbd7d652

View File

@ -105,7 +105,7 @@ fn value_to_string(
let contents_string = String::from_utf8_lossy(contents_bytes);
Ok(contents_string.to_string())
} else {
return Err(ShellError::CantConvert {
Err(ShellError::CantConvert {
to_type: "string".into(),
from_type: "closure".into(),
span,
@ -113,7 +113,7 @@ fn value_to_string(
"unable to retrieve block contents for closure with id {}",
val.block_id.get()
)),
});
})
}
} else {
Err(ShellError::UnsupportedInput {