Pass through RedirectExceptions from renderSkin function.

This commit is contained in:
hns 2001-12-13 11:46:42 +00:00
parent ad1c5fbb60
commit cda86002f3

View file

@ -3,6 +3,7 @@
package helma.scripting.fesi; package helma.scripting.fesi;
import helma.framework.*;
import helma.framework.core.*; import helma.framework.core.*;
import helma.objectmodel.*; import helma.objectmodel.*;
import helma.util.*; import helma.util.*;
@ -612,6 +613,9 @@ public class HopExtension {
reval.res.write ("[Skin not found: "+arguments[0]+"]"); reval.res.write ("[Skin not found: "+arguments[0]+"]");
if (asString) if (asString)
return new ESString (reval.res.popStringBuffer ()); return new ESString (reval.res.popStringBuffer ());
} catch (RedirectException redir) {
// let redirect pass through
throw redir;
} catch (Exception x) { } catch (Exception x) {
x.printStackTrace (); x.printStackTrace ();
throw new EcmaScriptException ("renderSkin: "+x); throw new EcmaScriptException ("renderSkin: "+x);