Skip to content

Commit e1413f5

Browse files
Fix PluginFetchError to preserve original error message
The except block was discarding the ExtensionFetchError message and replacing it with a generic 'Failed to fetch plugin'. Now it carries the original message through with 'extension' replaced by 'plugin'. Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 6460535 commit e1413f5

File tree

1 file changed

+2
-1
lines changed
  • openhands-sdk/openhands/sdk/plugin

1 file changed

+2
-1
lines changed

openhands-sdk/openhands/sdk/plugin/fetch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ def fetch_plugin_with_resolution(
107107
git_helper=git_helper,
108108
)
109109
except ExtensionFetchError as exc:
110-
raise PluginFetchError("Failed to fetch plugin") from exc
110+
msg = str(exc).replace("extension", "plugin")
111+
raise PluginFetchError(msg) from exc

0 commit comments

Comments
 (0)