aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma-facade.cc
diff options
context:
space:
mode:
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);
}