Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
228c68a9
Commit
228c68a9
authored
Jun 23, 2015
by
Daniel Campora
Browse files
py: Change exception type to ValueError when error reporting is terse.
Addresses issue #1347
parent
6e1dfb0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/parsenum.c
View file @
228c68a9
...
...
@@ -142,9 +142,9 @@ overflow:
}
value_error:
// if lex!=NULL then the parser called us and we need to make a
Syntax
Error with traceback
// if lex!=NULL then the parser called us and we need to make a
Value
Error with traceback
if
(
MICROPY_ERROR_REPORTING
==
MICROPY_ERROR_REPORTING_TERSE
)
{
mp_obj_t
exc
=
mp_obj_new_exception_msg
(
&
mp_type_
Syntax
Error
,
mp_obj_t
exc
=
mp_obj_new_exception_msg
(
&
mp_type_
Value
Error
,
"invalid syntax for integer"
);
raise_exc
(
exc
,
lex
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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