Skip to content

Commit f74142d

Browse files
Actually throw
1 parent b3b2860 commit f74142d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/gxc/src/SpriteManifest.cpp

Lines changed: 2 additions & 2 deletions
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;
@@ -146,7 +146,7 @@ static std::vector<BGRColour> parseColours(const nlohmann::json& jPalette)
146146
for (auto& jColour : jColours)
147147
{
148148
if (!jColour.is_string())
149-
std::runtime_error("Encountered a value that is not a string!");
149+
throw std::runtime_error("Encountered a value that is not a string!");
150150

151151
out.push_back(parseJSONPaletteColour(jColour.get<std::string>()));
152152
}

0 commit comments

Comments
 (0)