From 55647b56b6204c24995ed8cfa301617e0b231d2f Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 1 Feb 2004 15:04:33 +0000 Subject: [PATCH] The "file not found" error message is now a little bit more informative. --- src/swfdump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/swfdump.c b/src/swfdump.c index b2f00aa..b6cb9a5 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -662,7 +662,9 @@ int main (int argc,char ** argv) if (f<0) { - perror("Couldn't open file: "); + char buffer[256]; + sprintf(buffer, "Couldn't open %s", filename); + perror(buffer); exit(1); } if FAILED(swf_ReadSWF(f,&swf)) -- 1.7.10.4