diff options
| author | nytpu <alex@nytpu.com> | 2021-05-11 15:29:23 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-05-11 15:29:23 -0600 |
| commit | 777cdf503bc235ba348667395042ca47f153339b (patch) | |
| tree | fae163190121c2a22ac44cb7e54e3619b03833fd | |
| parent | b977d663da7982ebeba25259acd8a046c54385ea (diff) | |
Fix missing function call
| -rw-r--r-- | fetch/fetch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fetch/fetch.go b/fetch/fetch.go index ed4a8d0..b5dab95 100644 --- a/fetch/fetch.go +++ b/fetch/fetch.go @@ -27,7 +27,7 @@ func Feed(data *core.FullData, remote *url.URL, title string) error { case "gopher", "gophers": return gopherFeed(data, remote.String(), title) default: - return fmt.Errorf(core.Localizer("errors.unsupported_protocol", &localizations.Replacements{"scheme": remote.Scheme}) + return fmt.Errorf(core.Localizer.Get("errors.unsupported_protocol", &localizations.Replacements{"scheme": remote.Scheme})) } } @@ -42,7 +42,7 @@ func Page(data *core.FullData, remote *url.URL, title string) error { case "gopher", "gophers": return gopherPage(data, remote.String(), title) default: - return fmt.Errorf(core.Localizer("errors.unsupported_protocol", &localizations.Replacements{"scheme": remote.Scheme}) + return fmt.Errorf(core.Localizer.Get("errors.unsupported_protocol", &localizations.Replacements{"scheme": remote.Scheme})) } } |
