Let's print out nonzero return codes

This commit is contained in:
Lirusaito
2019-03-23 00:57:06 -04:00
parent 3d26f79b8b
commit b3f918970b

View File

@@ -262,7 +262,10 @@ int LLWindow::ShellEx(const std::string& command)
#else // LL_LINUX or other modern unix, pray it has xdg-open
"xdg-open \"";
#endif
return std::system((open + command + '"').c_str());
const auto& code = std::system((open + command + '"').c_str());
if (code) LL_WARNS() << "Failed to open \"" << command << "\" return code: " << code << LL_ENDL;
return code;
}
// static