refactor: reduce use of pointers in particular, Source can no longer be nil. Instantiate a Source with an Importer of All instead
1 file changed, 4 insertions(+), 2 deletions(-)
changed files
M cmd/searchix-web/generate-error-page.go → cmd/searchix-web/generate-error-page.go
@@ -20,8 +20,10 @@ return fault.Wrap(err, fmsg.With("could not create frontend")) } err = components.ErrorTemplate(components.TemplateData{ - Source: nil, - Sources: []*config.Source{}, + Source: config.Source{ + Importer: config.All, + }, + Sources: []config.Source{}, Query: "", ExtraHeadHTML: "", Code: 0,