Merge pull request #4408 from nextcloud/enh/4406/network-fail

log the whole error message when network creation fails
This commit is contained in:
Simon L 2024-03-21 09:13:07 +01:00 committed by GitHub
commit f9386388d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -879,7 +879,7 @@ class DockerActionManager
} catch (RequestException $e) { } catch (RequestException $e) {
// 409 is undocumented and gets thrown if the network already exists. // 409 is undocumented and gets thrown if the network already exists.
if ($e->getCode() !== 409) { if ($e->getCode() !== 409) {
throw $e; throw new \Exception("Could not create the nextcloud-aio network: " . $e->getMessage());
} }
} }