Skip to content

Commit c88bd7c

Browse files
Actually throw
1 parent b3b2860 commit c88bd7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/gxc/src/SpriteManifest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static BGRColour parseJSONPaletteColour(const std::string& s)
135135
static std::vector<BGRColour> parseColours(const nlohmann::json& jPalette)
136136
{
137137
if (!jPalette.is_object())
138-
std::runtime_error("parseColours expects parameter jPalette to be an object");
138+
throw std::runtime_error("parseColours expects parameter jPalette to be an object");
139139

140140
auto jColours = jPalette["colours"];
141141
std::vector<BGRColour> out;

0 commit comments

Comments
 (0)