[svn-commits] mnicholson: testsuite/asterisk/trunk r413 - /asterisk/trunk/asttest/lib/lua/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 18 14:10:05 CDT 2010


Author: mnicholson
Date: Fri Jun 18 14:10:02 2010
New Revision: 413

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=413
Log:
If there was an error opening the asterisk full log, don't try to read it.

Modified:
    asterisk/trunk/asttest/lib/lua/astlib.lua

Modified: asterisk/trunk/asttest/lib/lua/astlib.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lib/lua/astlib.lua?view=diff&rev=413&r1=412&r2=413
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Fri Jun 18 14:10:02 2010
@@ -322,6 +322,7 @@
 	local log, err = io.open(self:path("/var/log/asterisk/full"), "r")
 	if not log then
 		print("error opening '" .. self:path("/var/log/asterisk/full") .. "': " .. err)
+		return
 	end
 
 	print(log:read("*a"))




More information about the svn-commits mailing list