src/video/mir/SDL_mirvideo.c
changeset 10181 b82c0f22d22a
parent 10089 25fda20d0173
child 10299 5a45e29a6ea7
     1.1 --- a/src/video/mir/SDL_mirvideo.c	Tue Jun 07 09:01:23 2016 -0700
     1.2 +++ b/src/video/mir/SDL_mirvideo.c	Wed Jun 08 08:01:21 2016 -0700
     1.3 @@ -277,8 +277,10 @@
     1.4      mir_data->software       = SDL_FALSE;
     1.5      mir_data->pixel_format   = mir_pixel_format_invalid;
     1.6  
     1.7 -    if (!MIR_mir_connection_is_valid(mir_data->connection))
     1.8 -        return SDL_SetError("Failed to connect to the Mir Server");
     1.9 +    if (!MIR_mir_connection_is_valid(mir_data->connection)) {
    1.10 +        return SDL_SetError("Failed to connect to the mir server: %s",
    1.11 +            MIR_mir_connection_get_error_message(mir_data->connection));
    1.12 +    }
    1.13  
    1.14      MIR_InitDisplays(_this);
    1.15      MIR_InitMouse();