Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mher committed Jun 17, 2023
1 parent b3219ae commit 669019e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flower/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def prepare(self):
'FLOWER_UNAUTHENTICATED_API') or "false")
if not (self.application.options.basic_auth or self.application.options.auth) and not enable_api:
raise tornado.web.HTTPError(
401, "FLOWER_UNAUTHENTICATED_API flag is required to enable API without authentication")
401, "FLOWER_UNAUTHENTICATED_API environment variable is required to enable API without authentication")

def write_error(self, status_code, **kwargs):
exc_info = kwargs.get('exc_info')
Expand Down

0 comments on commit 669019e

Please sign in to comment.