We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51ba57 commit d3abb5dCopy full SHA for d3abb5d
app/Http/Controllers/SettingsController.php
@@ -23,16 +23,20 @@ public function __construct()
23
24
/**
25
* Display a listing of the resource.
26
- *
27
* @param VoiceSettings $voiceSettings
28
* @return Response|ResponseFactory
29
- * @throws Exception
30
*/
31
public function edit(VoiceSettings $voiceSettings)
32
{
33
- $bridgeClient = new BridgeClientService();
+ $version = 'unknown';
+ try {
+ $bridgeClient = new BridgeClientService();
34
+
35
+ $version = $bridgeClient->getControlPanelVersion();
36
+ } catch (Exception $e) {
37
+ flash('BRIDGE ERROR: ', $e->getMessage(), 'error');
38
+ }
39
- $version = $bridgeClient->getControlPanelVersion();
40
41
return inertia('Settings/Edit', [
42
'currentVersion' => $version,
0 commit comments