From e48fe4d900d566ac756d68771705e6a917012af0 Mon Sep 17 00:00:00 2001 From: Mathias Brodala Date: Thu, 14 Jul 2022 13:22:37 +0200 Subject: [PATCH] Output exact Cigar JSON parse error Also avoid the term ".cigar.json" which is misleading if a custom file is used. --- bin/cigar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cigar b/bin/cigar index 249bfbf..13e5a73 100755 --- a/bin/cigar +++ b/bin/cigar @@ -90,7 +90,7 @@ $timeout = $options['t'] ?? $options['timeout'] ?? null; try { $domains = (new Parser($baseUrl, $connectTimeout, $timeout))->parse($file); } catch (\Throwable $e) { - $outputter->writeErrorLine('Unable to parse .cigar.json file'); + $outputter->writeErrorLine(sprintf('Unable to parse Cigar JSON file: %s', $e->getMessage())); exit(1); }