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:
co-authored by
Claude Sonnet 4.6
parent
467d85dfec
commit
7e9c43f2bf
@@ -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;
|
||||
|
||||
@@ -18,6 +18,11 @@ class ShopifySync 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;
|
||||
}
|
||||
|
||||
$added = 0;
|
||||
$removed = 0;
|
||||
$inSync = 0;
|
||||
|
||||
Reference in New Issue
Block a user