We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eff5b4f commit 41bb060Copy full SHA for 41bb060
1 file changed
src/path_handlers.cpp
@@ -331,7 +331,9 @@ limhamn::http::server::response ff::handle_virtual_script_endpoint(const limhamn
331
332
// run uglifyjs on the file
333
std::string command = "uglifyjs " + temp_file + " -o " + temp_file;
334
- static_cast<void>(std::system(command.c_str()));
+ if (std::system(command.c_str()) != 0) {
335
+ return path;
336
+ }
337
338
return temp_file;
339
};
0 commit comments