From 6639aedaee051e8104d7f63b9a5812abf79440ed Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 16:24:18 +0200 Subject: [PATCH] gpgscm: Improve error handling of foreign functions. * tests/gpgscm/ffi.scm (ffi-fail): Do not needlessly join the error message. Signed-off-by: Justus Winter --- tests/gpgscm/ffi.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/gpgscm/ffi.scm b/tests/gpgscm/ffi.scm index 3f2e553ab..051c2c21d 100644 --- a/tests/gpgscm/ffi.scm +++ b/tests/gpgscm/ffi.scm @@ -36,8 +36,7 @@ (define (ffi-fail name args message) (let ((args' (open-output-string))) (write (cons (string->symbol name) args) args') - (throw (string-append - (get-output-string args') ": " message)))) + (throw (get-output-string args') message))) ;; Pseudo-definitions for foreign functions. Evaluates to no code, ;; but serves as documentation.