From 0d2af9c00c9012762b3565538f6c5b87128da0d1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 7 Mar 2021 13:59:21 +0100 Subject: invertColors: Log errors --- Invert.m | 8 ++++++-- 1 file 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 + ); } } } -- cgit v1.2.3