Skip to content

Commit b3c6959

Browse files
committed
Improve error message
1 parent 52edd8a commit b3c6959

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/TicketSwapErrorFormatter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ public static function getLinkFormatFromEnv() : string
4343
#[Override]
4444
public function formatErrors(AnalysisResult $analysisResult, Output $output) : int
4545
{
46-
if ($this->editorUrl === null) {
47-
$output->writeLineFormatted('<error>Please configure the `editorUrl`.</error>');
48-
$output->writeLineFormatted('');
49-
}
50-
5146
if (! $analysisResult->hasErrors()) {
5247
$output->writeLineFormatted('<fg=green;options=bold>No errors</>');
5348
$output->writeLineFormatted('');
@@ -114,6 +109,11 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output) : i
114109
);
115110
$output->writeLineFormatted('');
116111

112+
if ($this->editorUrl === null) {
113+
$output->writeLineFormatted('<comment>Configure the `editorUrl` to make the filenames clickable.</comment>');
114+
$output->writeLineFormatted('');
115+
}
116+
117117
$this->ciDetectedErrorFormatter->formatErrors($analysisResult, $output);
118118

119119
return 1;

0 commit comments

Comments
 (0)