Skip to content

Commit cde4c92

Browse files
authored
feat(elevation_map_loader): add error handling for std::runtime_error (autowarefoundation#4187)
* feat(elevation_map_loader): Add error handling for std::runtime_error Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com> * feat(elevation_map_loader): add error message output Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com> --------- Signed-off-by: Shin-kyoto <58775300+Shin-kyoto@users.noreply.github.com>
1 parent 1419f32 commit cde4c92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

perception/elevation_map_loader/src/elevation_map_loader_node.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ void ElevationMapLoaderNode::publish()
141141
try {
142142
is_bag_loaded = grid_map::GridMapRosConverter::loadFromBag(
143143
*data_manager_.elevation_map_path_, "elevation_map", elevation_map_);
144-
} catch (rosbag2_storage_plugins::SqliteException & e) {
144+
} catch (const std::runtime_error & e) {
145+
RCLCPP_ERROR(this->get_logger(), e.what());
145146
is_bag_loaded = false;
146147
}
147148
if (!is_bag_loaded) {

0 commit comments

Comments
 (0)