mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Provide error message instead of internal server error
This commit is contained in:
@@ -488,6 +488,10 @@ class HistoryController(BaseUIController, SharableMixin, UsesAnnotations, UsesIt
|
||||
history_is_current = history_to_view == trans.history
|
||||
else:
|
||||
history_to_view = trans.history
|
||||
if not history_to_view:
|
||||
raise exceptions.RequestParameterMissingException(
|
||||
"No 'id' parameter provided for history, and user does not have a current history."
|
||||
)
|
||||
user_is_owner = True
|
||||
history_is_current = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user