chore(tasks): better error messages when indexing tasks into Typesense

This commit is contained in:
kolaente 2023-09-03 22:22:27 +02:00
parent b99b323c4c
commit 8a15c91a4f
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -44,12 +44,12 @@ var indexCmd = &cobra.Command{
err := models.CreateTypesenseCollections()
if err != nil {
log.Critical(err.Error())
log.Criticalf("Could not create Typesense collections: %s", err.Error())
return
}
err = models.ReindexAllTasks()
if err != nil {
log.Critical(err.Error())
log.Criticalf("Could not reindex all tasks into Typesense: %s", err.Error())
return
}