Skip to content

Commit c5f38fe

Browse files
committed
vulkan_sdl3: cstoi: add description if failed
Add amendment that parsing the number was the problem (originally was just "Wrong option: <opt>" which is just the same as if passing unknown option).
1 parent f6d4b87 commit c5f38fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/video_display/vulkan/vulkan_sdl3.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,10 @@ bool parse_command_line_arguments(command_line_arguments& args, state_vulkan_sdl
623623
exp_size = strlen(cstr);
624624
}
625625
if (endpos != exp_size) {
626-
throw std::runtime_error{ std::string(token) };
626+
throw std::runtime_error{
627+
std::string(token) +
628+
" (error parsing number)"
629+
};
627630
}
628631
return result;
629632
};

0 commit comments

Comments
 (0)