@@ -56,20 +56,20 @@ handle_shared_library_from_name(
56
56
library_name = rcpputils::get_platform_library_name (library_basename);
57
57
} catch (const std::exception & e) {
58
58
RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING (
59
- " Failed to compute library name for '%s' due to %s" ,
60
- library_basename, e.what ());
59
+ " Failed to compute library name for '%s' due to %s" ,
60
+ library_basename, e.what ());
61
61
return nullptr ;
62
62
}
63
63
64
64
try {
65
65
lib = new rcpputils::SharedLibrary (library_name);
66
66
} catch (const std::runtime_error & e) {
67
67
RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING (
68
- " Could not load library %s: %s" , library_name.c_str (), e.what ());
68
+ " Could not load library %s: %s" , library_name.c_str (), e.what ());
69
69
return nullptr ;
70
70
} catch (const std::bad_alloc & e) {
71
71
RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING (
72
- " Could not load library %s: %s" , library_name.c_str (), e.what ());
72
+ " Could not load library %s: %s" , library_name.c_str (), e.what ());
73
73
return nullptr ;
74
74
}
75
75
map->data [map_item] = lib;
@@ -82,15 +82,15 @@ handle_shared_library_from_name(
82
82
83
83
try {
84
84
if (!lib->has_symbol (map->symbol_name [map_item])) {
85
- RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING (
85
+ RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING (
86
86
" Failed to find symbol '%s' in library" , map->symbol_name [map_item]);
87
- return nullptr ;
87
+ return nullptr ;
88
88
}
89
89
sym = lib->get_symbol (map->symbol_name [map_item]);
90
90
} catch (const std::exception & e) {
91
91
RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING (
92
- " Failed to get symbol '%s' in library: %s" ,
93
- map->symbol_name [map_item], e.what ());
92
+ " Failed to get symbol '%s' in library: %s" ,
93
+ map->symbol_name [map_item], e.what ());
94
94
return nullptr ;
95
95
}
96
96
0 commit comments