Watched: Also log the error on the "failed to restore existing watched entry" log.

This commit is contained in:
IRHM
2026-07-16 08:49:41 +01:00
committed by momi
parent f23552c170
commit 38fba0ac10
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ These changes are awaiting release:
- SpinnerTiny: Use svg instead of the css border trick to create the spinner fixing it looking more like a horseshoe than a circle on different browser scales (also added animation on the svg circle).
- SpinnerTiny: Fix color being wrong on dark theme.
- Watched: Also log the `error` on the "failed to restore existing watched entry" log.
## Maintenance
+2 -1
View File
@@ -443,7 +443,8 @@ func (s *Service) AddWatched(
&watched,
); err != nil {
// Try to restore the entry if unique contraint hit.
slog.Error("AddWatched: Failed to restore existing watched entry.")
slog.Error("AddWatched: Failed to restore existing watched entry.",
"error", err)
// Returns watched too because handlers of certain errors
// may need it (and it's ID since we could have fetched it here)
return watched, err