fix: file: An error message lost a '\n'

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2021-02-03 16:11:52 +08:00
parent 789afeafcf
commit 56563f7199
+1 -1
View File
@@ -152,7 +152,7 @@ void request_transfer_file(char type, const char *path)
if (sfd < 0) {
printf("open '%s' failed: ", path);
if (errno == ENOENT)
printf("No such filen");
printf("No such filen\n");
else
printf("%s\n", strerror(errno));
exit(EXIT_FAILURE);