aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-07 13:59:21 +0100
committerTeddy Wing2021-03-07 13:59:21 +0100
commit0d2af9c00c9012762b3565538f6c5b87128da0d1 (patch)
tree3df7ecc7bcf464ca1c20d436cfe98e139819df16
parent15b554ffdcb03e41c51c1afa93bda429867a1bf1 (diff)
downloadRe-Good-Catalina-Invert-Colours-0d2af9c00c9012762b3565538f6c5b87128da0d1.tar.bz2
invertColors: Log errors
-rw-r--r--Invert.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Invert.m b/Invert.m
index 811d741..54cbbb5 100644
--- a/Invert.m
+++ b/Invert.m
@@ -40,7 +40,7 @@ static const CGGammaValue INVERTED_GAMMA[2] = {1, 0};
&display_count
);
if (error != kCGErrorSuccess) {
- // return 69;
+ NSLog(@"Error getting active displays: %d", error);
}
for (int i = 0; i < display_count; i++) {
@@ -52,7 +52,11 @@ static const CGGammaValue INVERTED_GAMMA[2] = {1, 0};
INVERTED_GAMMA
);
if (error != kCGErrorSuccess) {
- // TODO: error handling
+ NSLog(
+ @"Error inverting display '%d': %d",
+ active_displays[i],
+ error
+ );
}
}
}