Skip to content

Commit 62df718

Browse files
CopilotJoeZiminski
andauthored
Improve error diagnostics for search_central_via_connection when search_path is None (#708)
* Initial plan * Move display_search_path into if block with rclone remote name for None case Co-authored-by: JoeZiminski <55797454+JoeZiminski@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JoeZiminski <55797454+JoeZiminski@users.noreply.github.com>
1 parent 5ccbde7 commit 62df718

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

datashuttle/utils/folders.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,13 @@ def search_central_via_connection(
718718
all_filenames: list = []
719719

720720
if output.returncode != 0:
721+
display_search_path = (
722+
f"{rclone_config_name}:<root>"
723+
if search_path is None
724+
else final_search_path
725+
)
721726
utils.log_and_message(
722-
f"Error searching files at {final_search_path}\n"
727+
f"Error searching files at {display_search_path}\n"
723728
f"{output.stderr.decode('utf-8') if output.stderr else ''}"
724729
)
725730
return all_folder_names, all_filenames

0 commit comments

Comments
 (0)