Samba4 exception test


<% if (request['REQUEST_METHOD'] == "POST") { /* if they cancelled then take them back to the list of tests */ if (form['submit'] == "Cancel") { redirect("index.esp"); } function TestFunction(arg1, arg2) { return "OK"; } if (form['submit'] == "Generate Exception") { write("I expect you to die Mr Bond!
\n"); TestFunction("foo"); } else { write("no exception
\n"); TestFunction("foo", "bar"); } } %> and here is some filler text ...