Добавил логи
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user