Skip to content

Commit

Permalink
runtime_error -> bad_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Jun 6, 2018
1 parent d765738 commit ef427a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ NodeParameters::NodeParameters(
for (const std::string & yaml_path : yaml_paths) {
rcl_params_t * yaml_params = rcl_yaml_node_struct_init(options->allocator);
if (nullptr == yaml_params) {
throw std::runtime_error("Failed to initialize yaml params struct");
throw std::bad_alloc();
}
if (!rcl_parse_yaml_file(yaml_path.c_str(), yaml_params)) {
throw std::runtime_error("Failed to parse parameters " + yaml_path);
Expand Down

0 comments on commit ef427a7

Please sign in to comment.