comparison gen/toobj.cpp @ 1062:b9f9bde1707e

Make error message on assembler failure more informative (hopefully)
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 08 Mar 2009 11:46:55 +0100
parents 12ea38902e83
children 1860414bf3b7
comparison
equal deleted inserted replaced
1061:616d7c90bb6a 1062:b9f9bde1707e
360 std::string ErrMsg; 360 std::string ErrMsg;
361 int R = sys::Program::ExecuteAndWait( 361 int R = sys::Program::ExecuteAndWait(
362 gcc, &Args[0], 0, 0, 0, 0, &ErrMsg); 362 gcc, &Args[0], 0, 0, 0, 0, &ErrMsg);
363 if (R) 363 if (R)
364 { 364 {
365 error("failed to invoke gcc"); 365 error("Failed to invoke gcc. %s", ErrMsg.c_str());
366 fatal(); 366 fatal();
367 } 367 }
368 } 368 }
369 369
370 370