mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
Show errno description in log
This commit is contained in:
parent
32663b7b01
commit
d6daf10cad
|
@ -319,9 +319,9 @@ static void transaction_commit(struct sway_transaction *transaction) {
|
||||||
if (transaction->timer) {
|
if (transaction->timer) {
|
||||||
wl_event_source_timer_update(transaction->timer, txn_timeout_ms);
|
wl_event_source_timer_update(transaction->timer, txn_timeout_ms);
|
||||||
} else {
|
} else {
|
||||||
wlr_log(WLR_ERROR, "Unable to create transaction timer. "
|
wlr_log(WLR_ERROR, "Unable to create transaction timer (%s). "
|
||||||
"There might not be any available file descriptors. "
|
"Some imperfect frames might be rendered.",
|
||||||
"Some imperfect frames might be rendered.");
|
strerror(errno));
|
||||||
handle_timeout(transaction);
|
handle_timeout(transaction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -700,8 +700,8 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
||||||
wl_event_source_timer_update(view->urgent_timer,
|
wl_event_source_timer_update(view->urgent_timer,
|
||||||
config->urgent_timeout);
|
config->urgent_timeout);
|
||||||
} else {
|
} else {
|
||||||
wlr_log(WLR_ERROR, "Unable to create urgency timer. "
|
wlr_log(WLR_ERROR, "Unable to create urgency timer (%s)",
|
||||||
"There might not be any available file descriptors.");
|
strerror(errno));
|
||||||
handle_urgent_timeout(view);
|
handle_urgent_timeout(view);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue