mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
...
This commit is contained in:
@@ -51,7 +51,7 @@ get_argv_from(const char *filename, const char *argv0, argv_array *final_ans) {
|
|||||||
if (errno == ENOENT || errno == ENOTDIR) return true;
|
if (errno == ENOENT || errno == ENOTDIR) return true;
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
int saved = errno;
|
int saved = errno;
|
||||||
os_log_error(OS_LOG_DEFAULT, "Failed to read from %s with error: %{darwin.errno}d", filename, errno);
|
os_log_error(OS_LOG_DEFAULT, "Failed to read from %{public}s with error: %{darwin.errno}d", filename, errno);
|
||||||
errno = saved;
|
errno = saved;
|
||||||
#endif
|
#endif
|
||||||
fprintf(stderr, "Failed to read from %s ", filename); perror("with error");
|
fprintf(stderr, "Failed to read from %s ", filename); perror("with error");
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ log_error(const char *fmt, ...) {
|
|||||||
fprintf(stderr, "[%.3f] ", monotonic_t_to_s_double(monotonic()));
|
fprintf(stderr, "[%.3f] ", monotonic_t_to_s_double(monotonic()));
|
||||||
}
|
}
|
||||||
// To see os_log messages from kitty, use:
|
// To see os_log messages from kitty, use:
|
||||||
// log show --predicate 'processImagePath contains "kitty"'
|
// log show --predicate 'processImagePath contains "kitty" and messageType == error'
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (use_os_log) os_log_error(OS_LOG_DEFAULT, "%{public}s", sanbuf);
|
if (use_os_log) os_log_error(OS_LOG_DEFAULT, "%{public}s", sanbuf);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user