Skip to content

Commit

Permalink
Better App Json importing debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Sep 17, 2024
1 parent db08c4c commit 5e60ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultiFlexi/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ public function importAppJson($jsonFile)
$this->setMyKey($candidat->fetchColumn());
$currentData = $candidat->fetchAll();
$currentVersion = \array_key_exists('version', $currentData[0]) ? $currentData[0]['version'] : 'n/a';
$this->addStatusMessage(sprintf(_('Current Record: #%s - %s'), $currentData['id'], $currentData['name']), 'debug');
} else { // Insert
$currentVersion = 'n/a';

Expand Down Expand Up @@ -350,7 +351,6 @@ public function importAppJson($jsonFile)
}
} catch (\PDOException $exc) {
echo $exc->getTraceAsString();
fwrite(\STDERR, print_r($appSpecRaw, true).\PHP_EOL);
$problemData = $this->getData();
$problemData['image'] = substr($problemData['image'], 0, 20).' ...';
fwrite(\STDERR, print_r($problemData, true).\PHP_EOL);
Expand Down

0 comments on commit 5e60ef0

Please sign in to comment.