From 13c37a9a7cc0e781a508462d8621e059de73abce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 4 May 2020 19:31:41 +0200 Subject: All warning procedures now uses warning system. --- module/util/exceptions.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/util/exceptions.scm') diff --git a/module/util/exceptions.scm b/module/util/exceptions.scm index 09bd3f97..41efaff5 100644 --- a/module/util/exceptions.scm +++ b/module/util/exceptions.scm @@ -43,11 +43,12 @@ (define-public warning-handler (make-parameter (lambda (fmt . args) - (format (current-error-port) - "WARNING: ~?~%" fmt args)))) + (format #f "WARNING: ~?~%" fmt args)))) ;; forwards return from warning-hander. By default returns an unspecified value, ;; but instances are free to provide a proper return value and use it. (define-public (warning fmt . args) - (apply (warning-handler) fmt (or args '()))) + (display (apply (warning-handler) fmt (or args '())) + (current-error-port))) + -- cgit v1.2.3