add additional information in die calls for debugging - scroll - scrollbackbuffer program for st
 (HTM) git clone git://git.suckless.org/scroll
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 200c1a92277ddc3daf0cde1f4957090f5887b423
 (DIR) parent bbdc448cf73235f0f9a9c02b679c9e6e46bfc5fd
 (HTM) Author: Jan Klemkow <j.klemkow@wemelug.de>
       Date:   Mon, 20 Apr 2020 22:08:47 +0200
       
       add additional information in die calls for debugging
       
       Diffstat:
         M scroll.c                            |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/scroll.c b/scroll.c
       @@ -231,10 +231,10 @@ getcursorposition(int *x, int *y)
                input[n] = '\0';
        
                if (sscanf(input, "\033[%d;%dR", x, y) != 2)
       -                die("parsing cursor position");
       +                die("parsing cursor position: %s", input);
        
                if (x <= 0 || y <= 0)
       -                die("invalid cursor position");
       +                die("invalid cursor position: x=%d y=%d", x, y);
        }
        
        void