squish: Handle nil errors when can't pack a module

Sat, 29 May 2010 21:44:23 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 29 May 2010 21:44:23 +0100
changeset 67
2fc48318b8bb
parent 66
28feb008ca2a
child 68
16d59655c817

squish: Handle nil errors when can't pack a module

squish.lua file | annotate | diff | comparison | revisions
--- a/squish.lua	Thu May 27 15:32:25 2010 +0100
+++ b/squish.lua	Sat May 29 21:44:23 2010 +0100
@@ -231,7 +231,7 @@
 				modulename, modulename, "@"..path));
 		end
 	else
-		print_err("Couldn't pack module '"..modulename.."': "..err);
+		print_err("Couldn't pack module '"..modulename.."': "..(err or "unknown error... path to module file correct?"));
 		os.exit(1);
 	end
 end

mercurial