mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
fix: show more detailed Liquid exceptions
This commit is contained in:
parent
d999b5157f
commit
aa8d3d1428
1 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ new class extends Component {
|
|||
$this->addError('polling_url', 'The polling URL must be a valid URL after resolving configuration variables.');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
$this->addError('polling_url', 'Error resolving Liquid variables: ' . $e->getMessage());
|
||||
$this->addError('polling_url', 'Error resolving Liquid variables: ' . $e->getMessage() . $e->getPrevious()?->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -148,7 +148,7 @@ new class extends Component {
|
|||
$this->data_payload_updated_at = $this->plugin->data_payload_updated_at;
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$this->dispatch('data-update-error', message: $e->getMessage());
|
||||
$this->dispatch('data-update-error', message: $e->getMessage() . $e->getPrevious()?->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue