提交 d250dea1 编写于 作者: K kohsuke

expanded error message to include optional stack trace.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5658 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e90eff99
......@@ -1024,6 +1024,7 @@ public class SubversionSCM extends SCM implements Serializable {
rsp.sendRedirect("credentialOK");
} catch (SVNException e) {
req.setAttribute("message",e.getErrorMessage());
req.setAttribute("exception",e);
rsp.forward(Hudson.getInstance(),"error",req);
} finally {
if(keyFile!=null)
......
......@@ -5,6 +5,16 @@
<l:main-panel>
<h1>Error</h1>
<p><st:out value="${message}"/></p>
<j:if test="${exception!=null}">
<input type="button" value="Detail..." onclick="showDetails()" id="button"/>
<pre id="details" style="display:none">${h.printThrowable(exception)}</pre>
<script>
function showDetails() {
$('button').style.display="none";
$('details').style.display="block";
}
</script>
</j:if>
</l:main-panel>
</l:layout>
</j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册