error(...) has many issues:
- It is often used in the context of
return error(...), implying that it has a “fancy” type, creating confusion withutil::Result/Error -logsourcelocationsdoes not work with it, because it will pretend the error happened inside oflogging.h- The log line contains
ERROR:, as opposed to[error], like for other errors logged withLogError.
Fix all issues by removing it.