Skip to content

Commit

Permalink
Output exact Cigar JSON parse error
Browse files Browse the repository at this point in the history
Also avoid the term ".cigar.json" which is misleading if a custom file is used.
  • Loading branch information
mbrodala authored Jul 14, 2022
1 parent 55bfa09 commit e3a83d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cigar
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e3a83d3

Please sign in to comment.