From 4ae105c0d4cbc3bf60d2fedd0c52fb55af3c5250 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Tue, 9 Sep 2025 12:56:00 +0900 Subject: [PATCH] compiler: add better 'could not execute: ' error messageShowing that the pgm is empty --- compiler/GHC/SysTools/Process.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/GHC/SysTools/Process.hs b/compiler/GHC/SysTools/Process.hs index 527c8453d46d..dc334bb1687a 100644 --- a/compiler/GHC/SysTools/Process.hs +++ b/compiler/GHC/SysTools/Process.hs @@ -219,7 +219,7 @@ handleProc pgm phase_name proc = do does_not_exist = throwGhcExceptionIO $ - InstallationError (phase_name ++ ": could not execute: " ++ pgm) + InstallationError (phase_name ++ ": could not execute: `" ++ pgm ++ "'") withPipe :: ((Handle, Handle) -> IO a) -> IO a withPipe = bracket createPipe $ \ (readEnd, writeEnd) -> do