mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +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;
|
||||
#ifdef __APPLE__
|
||||
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;
|
||||
#endif
|
||||
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()));
|
||||
}
|
||||
// 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__
|
||||
if (use_os_log) os_log_error(OS_LOG_DEFAULT, "%{public}s", sanbuf);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user