--- lt__private.h-bak 2010-06-17 22:33:21.820200000 -0400 +++ lt__private.h 2010-06-17 22:53:39.988600000 -0400 @@ -138,8 +138,13 @@ #define LT__GETERROR(lvalue) (lvalue) = lt__get_last_error() #define LT__SETERRORSTR(errormsg) lt__set_last_error(errormsg, 0) -#define LT__SETERROR(errorcode) if (0 == lt__get_last_error()) \ - LT__SETERRORSTR(LT__STRERROR(errorcode)) +#define LT__SETERROR(errorcode) do { if (0 == lt__get_last_error()) \ + if (LT_CONC(LT_ERROR_,FILE_NOT_FOUND) == LT_CONC(LT_ERROR_,errorcode)) { \ + fprintf (stderr, "%s (%d)\n", __FILE__, __LINE__); \ + LT__SETERRORSTR(LT__STRERROR(errorcode)); \ + } else { \ + LT__SETERRORSTR(LT__STRERROR(errorcode)); \ + }} while (0) #define LT__ENTER_PUBLIC_FUNC(x) lt__enter_err() #define LT__PUBLIC_FUNC_RETURN(x) lt__keep_error(); return x; #define LT__FORCEERROR(errorstr) LT__SETERRORSTR(errorstr)