mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Shorten error messages
This commit is contained in:
parent
f2387898f3
commit
78f544c41d
4
nnn.c
4
nnn.c
|
@ -2936,13 +2936,13 @@ main(int argc, char *argv[])
|
||||||
/* Initialize inotify */
|
/* Initialize inotify */
|
||||||
inotify_fd = inotify_init1(IN_NONBLOCK);
|
inotify_fd = inotify_init1(IN_NONBLOCK);
|
||||||
if (inotify_fd < 0) {
|
if (inotify_fd < 0) {
|
||||||
fprintf(stderr, "Cannot initialize inotify: %s\n", strerror(errno));
|
fprintf(stderr, "inotify init! %s\n", strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#elif defined(BSD_KQUEUE)
|
#elif defined(BSD_KQUEUE)
|
||||||
kq = kqueue();
|
kq = kqueue();
|
||||||
if (kq < 0) {
|
if (kq < 0) {
|
||||||
fprintf(stderr, "Cannot initialize kqueue: %s\n", strerror(errno));
|
fprintf(stderr, "kqueue init! %s\n", strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue