fix catch by value

This commit is contained in:
Martin Michelsen
2023-08-04 22:51:41 -07:00
parent 911b17df7e
commit 48a6dae50c
+1 -1
View File
@@ -890,7 +890,7 @@ string string_for_colors(const parray<uint8_t, 8>& colors) {
}
try {
ret += name_for_link_color(colors[x]);
} catch (const invalid_argument) {
} catch (const invalid_argument&) {
ret += string_printf("%02hhX", colors[x]);
}
}