Skip to content

Commit

Permalink
Merge pull request #187 from Sebbo94BY/Another-exception-catch-for-in…
Browse files Browse the repository at this point in the history
…stances-page

Catch generic exceptions on instance page
  • Loading branch information
Sebbo94BY authored Oct 7, 2023
2 parents 1fed509 + 78b99d4 commit ebd27b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion laravel/app/Http/Controllers/InstanceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use App\Http\Requests\InstanceStopRequest;
use App\Http\Requests\InstanceUpdateRequest;
use App\Models\Instance;
use Exception;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Process;
use Illuminate\Support\Facades\Redirect;
Expand All @@ -33,7 +34,7 @@ public function overview(): View
$virtualserver = $virtualserver_helper->get_virtualserver_connection();
$channel_list = $virtualserver->channelList();
$channelListForEachInstance[$instance->id]['channel_list'] = $channel_list;
} catch (TransportException | ServerQueryException $teamspeak_exception) {
} catch (TransportException | ServerQueryException | Exception $teamspeak_exception) {
$channelListForEachInstance[$instance->id]['channel_list'] = [];
$channelListForEachInstance[$instance->id]['error'] = $teamspeak_exception->getMessage();
}
Expand Down

0 comments on commit ebd27b6

Please sign in to comment.