display more complete error for failing to untar
This commit is contained in:
@@ -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!(
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user