ref: 5f23215c5dae7fc08e8c8c625bec5317a501b753
parent: 02ba30f8e0f93af7a24cc09f7260a78187a50277
author: bentley <[email protected]>
date: Mon Jan 18 12:42:54 EST 2010
rgbasm: improve error message for failed INCBIN
--- a/src/asm/yaccprt1.y
+++ b/src/asm/yaccprt1.y
@@ -1,8 +1,11 @@
%{
+#include <ctype.h>
+#include <err.h>
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
+#include <sysexits.h>
#include "asm/symbol.h"
#include "asm/asm.h"
--- a/src/asm/yaccprt3.y
+++ b/src/asm/yaccprt3.y
@@ -267,6 +267,7 @@
{
if( !fstk_RunInclude($2) )
{
+ fprintf(stderr, "Could not open file '%s' : %s\n", $2, strerror(errno));
yyerror( "File not found" );
}
}