From 8278bc5c9c52be7aa34abe2f9fccaf73267b8323 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Thu, 7 May 2020 18:36:26 -0600 Subject: [PATCH] Add res output --- src/sdl2/sdl2_image.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl2/sdl2_image.nim b/src/sdl2/sdl2_image.nim index c2d0857..0768ad0 100644 --- a/src/sdl2/sdl2_image.nim +++ b/src/sdl2/sdl2_image.nim @@ -51,10 +51,10 @@ static: rmFile(staticFile) let res = execAction(&"ar ru {staticFile} {buildDir}/*.o") if res.ret != 0: - raise newException(CatchableError, &"Error: could not build static lib {staticFile}") + raise newException(CatchableError, &"Error: could not build static lib {staticFile}: {res.output}") let ranres = execAction(&"ranlib {staticFile}") if ranres.ret != 0: - raise newException(CatchableError, &"Error: could not build static lib {staticFile}") + raise newException(CatchableError, &"Error: could not build static lib {staticFile}: {ranres.output}") # cDebug() # cDisableCaching()