Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/server/codechecker_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ def do_POST(self):
error_msg = \
"Requested CodeCheckerService on a " \
f"nonexistent product: '{product_endpoint}'."
LOG.error(error_msg)
raise ValueError(error_msg)
LOG.debug(error_msg)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception handler prints this message to the debug log already. I think, this could be removed.

raise ProductNotFoundError(error_msg)

if product_endpoint:
# The current request came through a
Expand All @@ -501,9 +501,9 @@ def do_POST(self):
else:
LOG.debug("This API endpoint does not exist.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception handler prints this message to the debug log already. I think, this could be removed.

error_msg = f"No API endpoint named '{self.path}'."
raise ValueError(error_msg)
raise ProductNotFoundError(error_msg)
else:
raise ValueError(
raise ProductNotFoundError(
f"API version {major_version} not supported")

else:
Expand Down
Loading