aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma-facade.cc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-07-17 22:21:13 +0200
committerMattias Andrée <maandree@kth.se>2024-07-17 22:21:13 +0200
commit4565494854aca1530bea4c0e3d390d22e6cc1460 (patch)
treeafe881c14f3bb452d8983f5b1e491148dbd56845 /libgamma-facade.cc
parentUpdate for libgamma 0.7.4 (diff)
downloadlibgammamm-4565494854aca1530bea4c0e3d390d22e6cc1460.tar.gz
libgammamm-4565494854aca1530bea4c0e3d390d22e6cc1460.tar.bz2
libgammamm-4565494854aca1530bea4c0e3d390d22e6cc1460.tar.xz
Fix usage of new API (also remove accidentally committed .a file)HEAD1.0.4master
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libgamma-facade.cc')
-rw-r--r--libgamma-facade.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgamma-facade.cc b/libgamma-facade.cc
index c68400a..9f2e457 100644
--- a/libgamma-facade.cc
+++ b/libgamma-facade.cc
@@ -64,7 +64,9 @@ namespace libgamma
method_capabilities(MethodCapabilities *output, int method)
{
struct libgamma_method_capabilities caps;
- libgamma_method_capabilities(&caps, sizeof(caps), method);
+ int r = libgamma_method_capabilities(&caps, sizeof(caps), method);
+ if (r < 0)
+ throw create_error(r);
*output = MethodCapabilities(&caps);
}