Mercurial Hosting > luan
diff src/luan/LuanException.java @ 1596:a9ff30fb5d89
add Hosting.push_file
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 26 Mar 2021 20:10:44 -0600 |
parents | c922446f53aa |
children | a37ffe2d1b14 |
line wrap: on
line diff
--- a/src/luan/LuanException.java Sun Mar 21 16:13:05 2021 -0600 +++ b/src/luan/LuanException.java Fri Mar 26 20:10:44 2021 -0600 @@ -13,6 +13,7 @@ private LuanTable table; private Map extra = new HashMap(); private boolean immutable = false; + public boolean showCause = true; public LuanException(String msg,Throwable cause) { super(msg,cause); @@ -126,7 +127,7 @@ public String getLuanStackTraceString() { StringBuilder sb = luanStackTrace(); Throwable cause = getCause(); - if( cause != null ) + if( showCause && cause != null ) sb.append( "\nCaused by: " ).append( getJavaStackTraceString(cause) ); return sb.toString(); }