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 8fce591 commit 1ff8feaCopy full SHA for 1ff8fea
src/Application.php
@@ -220,12 +220,19 @@ public function run(): int
220
);
221
return 1;
222
} catch (\Throwable $e) {
223
+ $message = $e->getMessage();
224
+ $basePath = canonicalise_path($container->get('basePath'));
225
+
226
+ if (strpos($message, $basePath) !== null) {
227
+ $message = str_replace($basePath, '', $message);
228
+ }
229
230
$container
231
->get(OutputInterface::class)
232
->printError(
233
sprintf(
234
'%s',
- $e->getMessage()
235
+ $message
236
)
237
238
0 commit comments