Include radix in low-level error message.
This commit is contained in:
parent
d2fdfe973e
commit
c77388eeef
|
@ -448,7 +448,7 @@
|
||||||
'read)))
|
'read)))
|
||||||
(cond
|
(cond
|
||||||
[(or (not n) (string? n))
|
[(or (not n) (string? n))
|
||||||
(error 'string->number "host `string->number` failed on ~s" (substring s start end))]
|
(error 'string->number "host `string->number` failed on ~s with radix ~s" (substring s start end) radix)]
|
||||||
[(eq? exactness 'inexact)
|
[(eq? exactness 'inexact)
|
||||||
(cond
|
(cond
|
||||||
[(extflonum? n)
|
[(extflonum? n)
|
||||||
|
|
|
@ -54696,8 +54696,9 @@ static const char *startup_source =
|
||||||
"(let-values()"
|
"(let-values()"
|
||||||
"(error"
|
"(error"
|
||||||
" 'string->number"
|
" 'string->number"
|
||||||
" \"host `string->number` failed on ~s\""
|
" \"host `string->number` failed on ~s with radix ~s\""
|
||||||
"(substring s_0 start_0 end_0)))"
|
"(substring s_0 start_0 end_0)"
|
||||||
|
" radix_0))"
|
||||||
"(if(eq? exactness_0 'inexact)"
|
"(if(eq? exactness_0 'inexact)"
|
||||||
"(let-values()"
|
"(let-values()"
|
||||||
"(if(extflonum? n_0)"
|
"(if(extflonum? n_0)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user