wrap errors correctly

This commit is contained in:
2026-07-07 09:34:36 +02:00
parent 24038e36f7
commit 2f77c27715
22 changed files with 95 additions and 94 deletions

View File

@@ -158,7 +158,7 @@ func getApiData(
}
if arerr != nil {
ar.error = fmt.Errorf("failed to get data from API: %s", arerr)
ar.error = fmt.Errorf("failed to get data from API: %w", arerr)
}
reschan <- ar