diff --git a/src/Task/Common/DisplayException.php b/src/Task/Common/DisplayException.php
index <HASH>..<HASH> 100644
--- a/src/Task/Common/DisplayException.php
+++ b/src/Task/Common/DisplayException.php
@@ -24,7 +24,7 @@
             $div->append(Tag::h2('File'), Tag::pre($exception->getFile())->append(':', $exception->getLine())->setSeparator(''));
 
             // shorten Trace
-            $trace = String::cast($exception->getTraceAsString())->replace(getcwd(), '');
+            $trace = String::cast($exception->getTraceAsString())->replace(getcwd() . '/', '');
 
             $div->append(Tag::h2('Trace'), Tag::pre($trace));
Remove leading '/' in relative paths of exception trace in DisplayException