We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c14197 commit 7403ab2Copy full SHA for 7403ab2
bin/php-openapi
@@ -130,7 +130,11 @@ switch ($command) {
130
}
131
132
if (!empty($errors)) {
133
- print_formatted("\BErrors found while reading the API Description:\C\n", STDERR);
+ if ($inputFile === null) {
134
+ print_formatted("\BErrors found while reading the API description from STDIN:\C\n", STDERR);
135
+ } else {
136
+ print_formatted("\BErrors found while reading the API description from {$inputFile}:\C\n", STDERR);
137
+ }
138
foreach ($errors as $error) {
139
if (($openPos = strpos($error, '[')) !== false && ($closePos = strpos($error, ']')) !== false && $openPos < $closePos) {
140
$error = escape_formatted(substr($error, 0, $openPos + 1)) . '\Y'
0 commit comments