more error handling

This commit is contained in:
Robin Appelman 2017-08-08 13:48:14 +02:00
commit 7912ef2e3f

View file

@ -17,7 +17,7 @@ class Migrate {
public function migrateDemo(array $demo): bool {
if (!$this->store->exists($demo['name'])) {
return false;
throw new \Exception('demo not found');
}
$hash = $this->store->hash($demo['name']);