Browse Source

Added more robust error messages.

Dalton Nell 10 years ago
parent
commit
b6a1b5597c
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/x.cpp

+ 3
- 1
src/x.cpp View File

@@ -32,9 +32,11 @@ int slop::XEngineErrorHandler( Display* dpy, XErrorEvent* event ) {
32 32
     char buffer[1024];
33 33
     XGetErrorText( dpy, event->error_code, buffer, 1024 );
34 34
     fprintf( stderr,
35
-             "_X Error of failed request:  %s\n_  Major opcode of failed request: % 3d\n_  Serial number of failed request:% 5li\n_  Current serial number in output stream:?????\n",
35
+             "_X Error of failed request: %s\n_  Error code of failed request: %3d\n_  Major opcode of failed request: %3d\n_  Minor opcode of failed request: %3d\n_  Serial number of failed request: %5li\n_  Current serial number in output stream:?????\n",
36 36
              buffer,
37
+             event->error_code,
37 38
              event->request_code,
39
+             event->minor_code,
38 40
              event->serial );
39 41
     exit(1);
40 42
 }