Diff

init.lua @ 126:fa3ddadb8364

verse: verse.loop() and new verse.step() use the new error handler to, er, handle errors.
author Matthew Wild <mwild1@gmail.com>
date Mon, 13 Sep 2010 14:08:41 +0100
parent 125:b46921de1e03
child 132:b38397163737
line wrap: on
line diff
--- a/init.lua	Mon Sep 13 14:07:41 2010 +0100
+++ b/init.lua	Mon Sep 13 14:08:41 2010 +0100
@@ -45,7 +45,11 @@
 end
 
 function verse.loop()
-	return server.loop();
+	return xpcall(server.loop, error_handler);
+end
+
+function verse.step()
+	return xpcall(server.step, error_handler);
 end
 
 function verse.quit()