~afrantzis/unity-system-compositor/sync-with-0.1.3

« back to all changes in this revision

Viewing changes to spinner/eglapp.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2015-08-26 10:21:01 UTC
  • mfrom: (247.2.2 unity-system-compositor)
  • Revision ID: tarmac-20150826102101-m17m66d4tbu9mghc
report the reason for a connection failure. (It may be of interest.).

Approved by PS Jenkins bot, Andreas Pokorny.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
 
201
201
    MirConnection* const connection{mir_connect_sync(mir_socket, appname)};
202
202
    if (!mir_connection_is_valid(connection))
203
 
        throw std::runtime_error("Can't get connection");
 
203
        throw std::runtime_error(mir_connection_get_error_message(connection));
204
204
 
205
205
    auto const pixel_format = select_pixel_format(connection);
206
206
    surfaceparm.pixel_format = pixel_format;