Improve Shopify sync error logging
Deploy / deploy (push) Successful in 14s

Log clear hint for 403 (IP whitelist), 401, 429, 5xx.
Commands exit with failure and print error when API returns no data.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek Tellissi
2026-09-11 02:54:44 +02:00
co-authored by Claude Sonnet 4.6
parent 467d85dfec
commit 7e9c43f2bf
3 changed files with 23 additions and 1 deletions
+5
View File
@@ -16,6 +16,11 @@ class ShopifyMap extends Command
$dryRun = $this->option('dry-run');
$variants = $shopify->getAllVariants();
if (empty($variants)) {
$this->error('Keine Varianten von Shopify erhalten — API-Aufruf fehlgeschlagen (Details im Log).');
return self::FAILURE;
}
$this->info('Shopify-Varianten geladen: ' . count($variants));
$mapped = 0;