fix: adapt event-log error to the two-value remedy signature

Belongs with the previous commit; it was left unstaged and e0580b1
does not compile without it.
This commit is contained in:
Sahilb315
2026-07-14 04:13:36 +05:30
parent e0580b1f79
commit ad16d8c162
+2 -1
View File
@@ -226,10 +226,11 @@ func main() {
// under sudo).
func eventlogInitError(err error) error {
if errors.Is(err, fs.ErrPermission) {
help, _ := config.UnwritableConfigDirRemedy(config.Get().ConfigDir())
return usefulerror.NewUsefulError().
WithCode(errcodes.PermissionDenied).
WithHumanError("event logging is required but its directory is not writable").
WithHelp(config.UnwritableConfigDirRemedy(config.Get().ConfigDir())).
WithHelp(help).
Wrap(err)
}
return usefulerror.NewUsefulError().