diff src/settings.sml @ 1294:b4480a56cab7

Server-side 'onError'
author Adam Chlipala <adam@chlipala.net>
date Tue, 07 Sep 2010 08:28:07 -0400
parents acabf3935060
children d2ad997ca157
line wrap: on
line diff
--- a/src/settings.sml	Sun Sep 05 14:00:57 2010 -0400
+++ b/src/settings.sml	Tue Sep 07 08:28:07 2010 -0400
@@ -486,4 +486,8 @@
 fun setSafeGets ls = safeGet := SS.addList (SS.empty, ls)
 fun isSafeGet x = SS.member (!safeGet, x)
 
+val onError = ref (NONE : (string * string list * string) option)
+fun setOnError x = onError := x
+fun getOnError () = !onError
+
 end