Добавил логи

This commit is contained in:
2026-06-14 19:37:09 +03:00
parent d4bf8a8cad
commit 81ed58ecff
28 changed files with 379 additions and 121 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func sanitizeComponent(s string) string {
func titleYear(title string, year int) (string, error) {
t := sanitizeComponent(title)
if t == "" {
return "", fmt.Errorf("layout: пустое название после санитизации (%q)", title)
return "", fmt.Errorf("layout: empty title after sanitization (%q)", title)
}
if year > 0 {
return fmt.Sprintf("%s (%d)", t, year), nil