Improved error message.

This commit is contained in:
2018-03-23 17:20:39 +01:00
parent e52e6b7676
commit 1077f6ab46

View File

@@ -38,7 +38,7 @@ int get_file_descriptor(std::string_view file_name, int mode)
{
int fd = open(file_name.data(), mode);
if (fd < 0) {
perror("Failed to open file");
perror("get_file_descriptor");
exit(1);
}