Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
63328458
Commit
63328458
authored
Mar 08, 2011
by
Jérôme Maloberti
Browse files
Correct previous fix + improve error message in case of missing namespace.
parent
ce53c58e
Changes
2
Hide whitespace changes
Inline
Side-by-side
parser/ulexer.ml
View file @
63328458
...
...
@@ -81,7 +81,7 @@ module Token = struct
let
extract_string
=
function
|
KEYWORD
s
|
IDENT
s
|
INT
s
|
STRING1
s
|
STRING2
s
|
ANY_IN_NS
->
s
ANY_IN_NS
s
->
s
|
tok
->
invalid_arg
(
"Cannot extract a string from this token: "
^
to_string
tok
)
...
...
runtime/load_xml.ml
View file @
63328458
...
...
@@ -100,7 +100,8 @@ let load_xml ?(ns=false) s =
|
_
->
Value
.
failwith'
"No XML stream to parse"
with
e
->
stack
:=
Empty
;
txt
.
pos
<-
0
;
match
e
with
|
Ns
.
UnknownPrefix
_
->
Value
.
failwith'
"Unknown namespace prefix"
|
Ns
.
UnknownPrefix
n
->
Value
.
failwith'
(
"Unknown namespace prefix: "
^
(
U
.
get_str
n
))
|
e
->
raise
e
...
...
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