mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-15 13:52:16 -08:00
Improve readability in errors related to *READ-BASE* and *READ-DEFAULT-FLOAT-FORMAT*
This commit is contained in:
parent
d7aff31c8a
commit
fcf8046f99
1 changed files with 4 additions and 2 deletions
|
|
@ -1526,7 +1526,8 @@ ecl_current_read_base(void)
|
|||
ecl_fixnum_greater(x, MAKE_FIXNUM(36)))
|
||||
{
|
||||
ECL_SETQ(the_env, @'*read_base*', MAKE_FIXNUM(10));
|
||||
FEerror("The value of *READ-BASE*, ~S, was illegal.", 1, x);
|
||||
FEerror("The value of *READ-BASE*~& ~S~%"
|
||||
"is not in the range (INTEGER 2 36)", 1, x);
|
||||
}
|
||||
return fix(x);
|
||||
}
|
||||
|
|
@ -1551,7 +1552,8 @@ ecl_current_read_default_float_format(void)
|
|||
#endif
|
||||
}
|
||||
ECL_SETQ(the_env, @'*read-default-float-format*', @'single-float');
|
||||
FEerror("The value of *READ-DEFAULT-FLOAT-FORMAT*, ~S, was illegal.",
|
||||
FEerror("The value of *READ-DEFAULT-FLOAT-FORMAT*~& ~S~%"
|
||||
"is not one of (SINGLE-FLOAT SHORT-FLOAT DOUBLE-FLOAT LONG-FLOAT)",
|
||||
1, x);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue