Skip to content

Commit 41bb060

Browse files
committed
Clang sucks.
1 parent eff5b4f commit 41bb060

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/path_handlers.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ limhamn::http::server::response ff::handle_virtual_script_endpoint(const limhamn
331331

332332
// run uglifyjs on the file
333333
std::string command = "uglifyjs " + temp_file + " -o " + temp_file;
334-
static_cast<void>(std::system(command.c_str()));
334+
if (std::system(command.c_str()) != 0) {
335+
return path;
336+
}
335337

336338
return temp_file;
337339
};

0 commit comments

Comments
 (0)