Print proper analysis instead of "exited with error 0" fixes #10895 (cherry picked from commit 48d91f48) (cherry picked from commit 5204d39e)