From e64acf8f06ce4b54720a61f01c19e38898abd72d Mon Sep 17 00:00:00 2001 From: aangerma Date: Thu, 24 Sep 2020 12:14:43 +0300 Subject: [PATCH] Improve the error message in custom preset and sensor_mode is incompatible with requested resolution (RS5-8797 ) --- src/l500/l500-depth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/l500/l500-depth.cpp b/src/l500/l500-depth.cpp index 05c47edf44..2a4b5af912 100644 --- a/src/l500/l500-depth.cpp +++ b/src/l500/l500-depth.cpp @@ -641,7 +641,7 @@ namespace librealsense if (preset_option.query() == RS2_L500_VISUAL_PRESET_CUSTOM) { if(sensor_mode_option.query() != get_resolution_from_width_height(vs->get_width(), vs->get_height())) - throw std::runtime_error(to_string() << "sensor mode option ("<< sensor_mode_option.query()<<") is incompatible with requested resolution (" + throw std::runtime_error(to_string() << "sensor mode ("<< rs2_sensor_mode((int)sensor_mode_option.query())<<") with RS2_L500_VISUAL_PRESET_CUSTOM is incompatible with the requested profile resolution (" << get_resolution_from_width_height(vs->get_width(), vs->get_height())<<")"); } }