display more complete error for failing to untar

This commit is contained in:
Ruben Fiszel
2025-03-06 13:24:14 +01:00
parent cc599a6727
commit 11b779ff41
2 changed files with 7 additions and 3 deletions

View File

@@ -118,7 +118,8 @@ pub fn extract_tar(tar: bytes::Bytes, folder: &str) -> error::Result<()> {
tracing::info!("Failed to untar to {folder}. Error: {:?}", e);
std::fs::remove_dir_all(&folder)?;
return Err(error::Error::ExecutionErr(format!(
"Failed to untar tar {folder}"
"Failed to untar tar {folder}. Error: {:?}",
e
)));
}
tracing::info!(

View File

@@ -230,7 +230,10 @@
} else if (event.data.type == 'testBundleError') {
loadingCodebaseButton = false
sendUserToast(
typeof event.data.error == 'object' ? JSON.stringify(event.data.error) : event.data.error,
'Error bundling script:' +
(typeof event.data.error == 'object'
? JSON.stringify(event.data.error)
: event.data.error),
true
)
} else if (event.data.type == 'replaceFlow') {
@@ -630,7 +633,7 @@
{#if (currentScript?.language == 'bun' || currentScript?.language == 'python3') && currentScript?.content != undefined}
{#if relativePaths.length > 0}
<div class="flex flex-row-reverse py-1">
{#if currentScript?.language == 'bun'}
{#if currentScript?.language == 'bun' && !currentScript?.isCodebase}
<Toggle
size="xs"
bind:checked={typescriptBundlePreviewMode}