1
0
Fork 0
mirror of https://github.com/otakuto/crazydiskinfo.git synced 2025-08-03 22:58:21 +00:00

Fix std::cout to std::cerr for error message

This commit is contained in:
Takanori Suzuki 2017-01-24 23:22:11 +09:00
parent f702935908
commit 0c7ce76286

View file

@ -431,8 +431,8 @@ int main()
if (smartList.size() == 0) if (smartList.size() == 0)
{ {
endwin(); endwin();
std::cout << "No S.M.A.R.T readable devices." << std::endl; std::cerr << "No S.M.A.R.T readable devices." << std::endl;
std::cout << "If you are non-root user, please use sudo or become root." << std::endl; std::cerr << "If you are non-root user, please use sudo or become root." << std::endl;
return 1; return 1;
} }