Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
66d5c8ef
Commit
66d5c8ef
authored
Jul 27, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more detail to error messages during loading from xml
parent
6997fc57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
common/lib/xmodule/xmodule/xml_module.py
+5
-1
No files found.
common/lib/xmodule/xmodule/xml_module.py
View file @
66d5c8ef
...
...
@@ -4,6 +4,7 @@ from xmodule.modulestore import Location
from
lxml
import
etree
import
copy
import
logging
import
traceback
from
collections
import
namedtuple
from
fs.errors
import
ResourceNotFoundError
import
os
...
...
@@ -220,7 +221,10 @@ class XmlDescriptor(XModuleDescriptor):
system
.
error_handler
(
msg
)
# if error_handler didn't reraise, work around problem.
error_elem
=
etree
.
Element
(
'error'
)
error_elem
.
text
=
msg
message_elem
=
etree
.
SubElement
(
error_elem
,
'error_message'
)
message_elem
.
text
=
msg
stack_elem
=
etree
.
SubElement
(
error_elem
,
'stack_trace'
)
stack_elem
.
text
=
traceback
.
format_exc
()
return
{
'data'
:
etree
.
tostring
(
error_elem
)}
cls
.
clean_metadata_from_xml
(
definition_xml
)
...
...
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