1
0
Fork 0
mirror of https://github.com/otakuto/crazydiskinfo.git synced 2025-08-09 07:24:08 +00:00
This commit is contained in:
BlueSkyDetector 2017-06-08 07:53:50 +00:00 committed by GitHub
commit 45a620ec89

View file

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