mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add status code 404 to response in tool_runner when a tool does not exist.
This commit is contained in:
@@ -61,6 +61,7 @@ class ToolRunner( BaseUIController ):
|
||||
if not tool:
|
||||
log.error( "index called with tool id '%s' but no such tool exists", tool_id )
|
||||
trans.log_event( "Tool id '%s' does not exist" % tool_id )
|
||||
trans.response.status = 404
|
||||
return "Tool '%s' does not exist, kwd=%s " % ( tool_id, kwd )
|
||||
if tool.require_login and not trans.user:
|
||||
message = "You must be logged in to use this tool."
|
||||
|
||||
Reference in New Issue
Block a user