Skip to content

Commit

Permalink
Insert egl version major and minor into exception
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Oct 23, 2024
1 parent 3ffc1e2 commit 72c7038
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/platforms/atomic-kms/server/kms/egl_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
*/

#include "egl_helper.h"

#include "mir/graphics/gl_config.h"
#include "mir/graphics/egl_error.h"
#include "mir/log.h"

#include <boost/exception/errinfo_errno.hpp>
#include <boost/throw_exception.hpp>
#include <gbm.h>

#include "mir/log.h"
#include <gbm.h>
#include <format>

namespace mg = mir::graphics;
namespace mgmh = mir::graphics::atomic::helpers;
Expand Down Expand Up @@ -74,8 +77,7 @@ void initialise_egl(EGLDisplay dpy, int minimum_major_version, int minimum_minor
(major == minimum_major_version && minor < minimum_minor_version))
{
BOOST_THROW_EXCEPTION(
boost::enable_error_info(std::runtime_error("Incompatible EGL version")));
// TODO: Insert egl version major and minor into exception
boost::enable_error_info(std::runtime_error(std::format("Incompatible EGL version: {} ({})", major, minor))));
}
}

Expand Down

0 comments on commit 72c7038

Please sign in to comment.