Fix error messages

This commit is contained in:
Baptiste Wicht 2016-09-10 15:51:56 +02:00
parent 2ad062c464
commit 61305cfa48

View File

@ -35,15 +35,15 @@ std::string read_file(const std::string& path){
return buffer;
}
} else {
tlib::printf("cat: error: %s\n", std::error_message(content_result.error()));
tlib::printf("ifconfig: error: %s\n", std::error_message(content_result.error()));
}
} else {
tlib::printf("cat: error: %s\n", std::error_message(info.error()));
tlib::printf("ifconfig: error: %s\n", std::error_message(info.error()));
}
tlib::close(*fd);
} else {
tlib::printf("cat: error: %s\n", std::error_message(fd.error()));
tlib::printf("ifconfig: error: %s\n", std::error_message(fd.error()));
}
return "";