We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f2b6bf commit 7f28ab3Copy full SHA for 7f28ab3
1 file changed
src/Server.php
@@ -411,12 +411,17 @@ private function sendWebsocketUpdate($path)
411
'Sec-WebSocket-Protocol' => 'solid-0.1'
412
)
413
));
414
- $client->send("pub $baseUrl$path\n");
415
416
- while ($path !== "/") {
417
- $path = $this->parentPath($path);
418
419
- }
+ try {
+ $client->send("pub $baseUrl$path\n");
+
+ while ($path !== "/") {
+ $path = $this->parentPath($path);
420
421
+ }
422
+ } catch (\WebSocket\Exception $exception) {
423
+ throw new Exception('Could not write to pub-sup server', 502, $exception);
424
425
}
426
427
private function handleDeleteRequest(Response $response, string $path, $contents): Response
0 commit comments