mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-15 15:37:51 -04:00
Fix error messages
This commit is contained in:
parent
2ad062c464
commit
61305cfa48
@ -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 "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user