mirror of
https://github.com/demostf/migrate.git
synced 2026-06-03 17:24:10 +02:00
better error messages
This commit is contained in:
parent
7912ef2e3f
commit
d7eddee9f7
1 changed files with 2 additions and 2 deletions
|
|
@ -17,13 +17,13 @@ class Migrate {
|
|||
|
||||
public function migrateDemo(array $demo): bool {
|
||||
if (!$this->store->exists($demo['name'])) {
|
||||
throw new \Exception('demo not found');
|
||||
throw new \Exception('demo not found: ' . $this->store->generatePath($demo['name']));
|
||||
}
|
||||
|
||||
$hash = $this->store->hash($demo['name']);
|
||||
|
||||
if ($hash !== $demo['hash']) {
|
||||
throw new \Exception('hash mismatch');
|
||||
throw new \Exception('hash mismatch: ' . $this->store->generatePath($demo['name']));
|
||||
}
|
||||
|
||||
return $this->api->changeDemo(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue