Skip to content

Awful try/catches obscuring underlying exception in shed_upload #116

@hexylena

Description

@hexylena
esr@cpt:~/Projects/galaxy/tools-iuc/tools/tool_factory_2⟫ planemo shed_upload  --force_repository_creation --shed_target testtoolshed                                              
Could not update /home/users/cpt/cpt/esr/Projects/galaxy/tools-iuc/tools/tool_factory_2
Could not find repository in toolshed
Unexpected response from galaxy: 400: {"err_msg": "You already own a repository named <b>tool_factory_2<\/b>, please choose a different name.", "err_code": 400008}

vs

esr@cpt:~/Projects/galaxy/tools-iuc/tools/tool_factory_2⟫ planemo shed_upload  --force_repository_creation --shed_target testtoolshed 
<snip>
Exception: Failed to find repository for owner/name fubar/tool_factory_2

It was only by removing the try/catches that I could read the underlying exception which contained the useful information of 'wrong user'.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions