Skip to content

Commit b16cf4f

Browse files
committed
Add error message for missing test runner
1 parent aa8f801 commit b16cf4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ func main() {
7474
os.Exit(0)
7575
}
7676

77-
os.Exit(0)
77+
// very informative and helpful error message
78+
fmt.Fprintf(os.Stderr, "No test runner found. Please install either symfony/phpunit-bridge or phpunit/phpunit as a dev dependency.\n")
79+
os.Exit(1)
7880
}
7981

8082
app := &console.Application{

0 commit comments

Comments
 (0)