Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
1e1d86f0
Commit
1e1d86f0
authored
Feb 03, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GUI: display error stack trace in error page
parent
1607ed73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
dream/platform/src/dream/index.html
dream/platform/src/dream/index.html
+2
-0
dream/platform/src/dream/index.js
dream/platform/src/dream/index.js
+1
-1
No files found.
dream/platform/src/dream/index.html
View file @
1e1d86f0
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
<
a
href
=
"
javascript: location.reload()
"
>
Click
here
to
reload
the
page
<
/a><br/
>
<
a
href
=
"
javascript: location.reload()
"
>
Click
here
to
reload
the
page
<
/a><br/
>
The
error
detail
is
:
The
error
detail
is
:
<
pre
>
{{
error
}}
<
/pre
>
<
pre
>
{{
error
}}
<
/pre
>
<
br
/>
Stack
Trace
is
:
<
pre
>
{{
error_stack
}}
<
/pre
>
</script>
</script>
</head>
</head>
...
...
dream/platform/src/dream/index.js
View file @
1e1d86f0
...
@@ -436,7 +436,7 @@
...
@@ -436,7 +436,7 @@
}
}
console
.
error
(
error
.
stack
);
console
.
error
(
error
.
stack
);
document
.
querySelector
(
"
article[class='gadget_container']
"
)
document
.
querySelector
(
"
article[class='gadget_container']
"
)
.
innerHTML
=
error_template
({
error
:
error
});
.
innerHTML
=
error_template
({
error
:
error
,
error_stack
:
error
.
stack
});
});
});
});
});
}(
window
,
jQuery
,
rJS
,
RSVP
,
Handlebars
,
initGadgetMixin
));
}(
window
,
jQuery
,
rJS
,
RSVP
,
Handlebars
,
initGadgetMixin
));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment