Skip to content

Commit

Permalink
PR #7412 from Avishag: Improve error message (RS5-8797)
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel authored Sep 24, 2020
2 parents 7ebea7b + e64acf8 commit aa5c5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/l500/l500-depth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())<<")");
}
}
Expand Down

0 comments on commit aa5c5d1

Please sign in to comment.