Skip to content

Commit

Permalink
Avoid static method when throwing exception for better trace log
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Jan 18, 2024
1 parent 032b40c commit c5a1373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/Outgoing.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public function __construct()
public function onLoadSetupInstructions()
{
throw_unless($eventCode = post('setup_event_code'),
FlashException::error('Please choose an event.')
new FlashException('Please choose an event.')
);

throw_unless($eventObj = resolve(WebhookManager::class)->getEventObject($eventCode),
FlashException::error('Event not found')
new FlashException('Event not found')
);

return [
Expand Down

0 comments on commit c5a1373

Please sign in to comment.