aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-06-19 14:24:18 +0000
committerJustus Winter <[email protected]>2017-06-19 14:51:29 +0000
commit6639aedaee051e8104d7f63b9a5812abf79440ed (patch)
treef14c8bfe6f8bb1339326091ba67563a5279f8e69 /tests/gpgscm
parentgpgscm: Improve error reporting. (diff)
downloadgnupg-6639aedaee051e8104d7f63b9a5812abf79440ed.tar.gz
gnupg-6639aedaee051e8104d7f63b9a5812abf79440ed.zip
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 <[email protected]>
Diffstat (limited to 'tests/gpgscm')
-rw-r--r--tests/gpgscm/ffi.scm3
1 files changed, 1 insertions, 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.