better error messages
This commit is contained in:
3
main.cpp
3
main.cpp
@ -56,8 +56,11 @@ int main(int argc, char* argv[])
|
|||||||
if(!config.overlay.empty())
|
if(!config.overlay.empty())
|
||||||
{
|
{
|
||||||
if(!overlay.open(config.overlay.c_str(), config.Xres, config.Yres, 3))
|
if(!overlay.open(config.overlay.c_str(), config.Xres, config.Yres, 3))
|
||||||
|
{
|
||||||
|
std::cout<<"Unable to open "<<config.overlay;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while (!ferror(netcat))
|
while (!ferror(netcat))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user