diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gpgme-vala/vapi/gpgme.vapi | 2 | ||||
-rw-r--r-- | plugins/signal-protocol/vapi/signal-protocol-public.vapi | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gpgme-vala/vapi/gpgme.vapi b/plugins/gpgme-vala/vapi/gpgme.vapi index 48d11b8c..0b14185c 100644 --- a/plugins/gpgme-vala/vapi/gpgme.vapi +++ b/plugins/gpgme-vala/vapi/gpgme.vapi @@ -506,7 +506,7 @@ namespace GPG { private void throw_if_error(GPGError.Error error) throws GLib.Error { if (error.code != GPGError.ErrorCode.NO_ERROR) { - throw new GLib.Error(-1, error.code, error.to_string()); + throw new GLib.Error(-1, error.code, "%s", error.to_string()); } } } diff --git a/plugins/signal-protocol/vapi/signal-protocol-public.vapi b/plugins/signal-protocol/vapi/signal-protocol-public.vapi index d0208c6c..f879c583 100644 --- a/plugins/signal-protocol/vapi/signal-protocol-public.vapi +++ b/plugins/signal-protocol/vapi/signal-protocol-public.vapi @@ -38,7 +38,7 @@ namespace Signal { [CCode (cname = "signal_throw_gerror_by_code_", cheader_filename = "signal_protocol.h")] private int throw_by_code(int code, string? message = null) throws GLib.Error { if (code < 0 && code > MIN_ERROR_CODE) { - throw new GLib.Error(-1, code, @"$(message ?? "Signal error"): $((ErrorCode)code)"); + throw new GLib.Error(-1, code, "%s: %s", message ?? "Signal error", ((ErrorCode)code).to_string()); } return code; } |