Skip to content

Commit 1dd46d8

Browse files
committed
[tools] Catch exception of polymorphic type by reference
1 parent 78bec38 commit 1dd46d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tools/sections.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int main(int argc, char** argv)
132132

133133
try {
134134
process(argv[1]);
135-
} catch (std::exception e) {
135+
} catch (const std::exception& e) {
136136
std::cerr << e.what() << std::endl;
137137
return 1;
138138
}

0 commit comments

Comments
 (0)