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 d98c742 commit ec191afCopy full SHA for ec191af
bootstrap/helpers/docker.php
@@ -48,9 +48,13 @@ function format_docker_command_output_to_json($rawOutput): Collection
48
$outputLines = collect($outputLines);
49
}
50
51
- return $outputLines
52
- ->reject(fn ($line) => empty($line))
53
- ->map(fn ($outputLine) => json_decode($outputLine, true, flags: JSON_THROW_ON_ERROR));
+ try {
+ return $outputLines
+ ->reject(fn ($line) => empty($line))
54
+ ->map(fn ($outputLine) => json_decode($outputLine, true, flags: JSON_THROW_ON_ERROR));
55
+ } catch (\Throwable $e) {
56
+ return collect([]);
57
+ }
58
59
60
function format_docker_labels_to_json(string|array $rawOutput): Collection
0 commit comments