core: WIP exceptions
This commit is contained in:
parent
91dba33bf3
commit
197416e285
|
@ -176,11 +176,11 @@ along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
|||
(loop (acons id e a)))))))))
|
||||
(lambda (key . args)
|
||||
(if (defined? 'with-output-to-string)
|
||||
(simple-format (current-error-port) "exception:~a:~a\n" key args)
|
||||
(simple-format (current-error-port) "exception: ~a: ~s\n" key args)
|
||||
(begin
|
||||
(display "exception:" (current-error-port))
|
||||
(display "exception: " (current-error-port))
|
||||
(display key (current-error-port))
|
||||
(display ":" (current-error-port))
|
||||
(display args (current-error-port))
|
||||
(display ": " (current-error-port))
|
||||
(write args (current-error-port))
|
||||
(newline (current-error-port))))
|
||||
(loop a))))))
|
||||
|
|
|
@ -32,6 +32,7 @@ assert_number (char const *name, struct scm *x)
|
|||
if (x->type != TNUMBER)
|
||||
{
|
||||
eputs (name);
|
||||
eputs (": ");
|
||||
error (cell_symbol_not_a_number, x);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue