Changeset

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
parents 125:b46921de1e03
children 127:8f831f259cea
files init.lua
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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()