Skip to content

Search backend: fix user-facing error strings

Warren Gifford requested to merge cc/fix-error-strings into main

Created by: camdencheek

When a user enters an invalid patterntype, the formatting directive %v does not actually show the string contents of the pointer, just the pointer value. These end up being user-facing errors, so they should look nice.

Slack thread

Test plan

Added a probably-unnecessary test for the formatting of the errors in this function, but since they are user-facing, seemed maybe worth the few lines.

Merge request reports

Loading