aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/terminal/line.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/terminal/line.cc b/src/ui/terminal/line.cc
index 0848b22..962b692 100644
--- a/src/ui/terminal/line.cc
+++ b/src/ui/terminal/line.cc
@@ -45,7 +45,7 @@ constexpr absl::string_view kBeginningOfLine = "\r";
int CheckedCall(const char* what_arg, int r) {
if (r < 0) {
- throw std::system_error(errno, std::generic_category(), what_arg);
+ throw std::system_error(errno, std::system_category(), what_arg);
}
return r;
}
@@ -137,7 +137,7 @@ char TerminalLine::GetChar() {
} else if (errno == EINTR) {
continue;
} else {
- throw std::system_error(errno, std::generic_category(), "read");
+ throw std::system_error(errno, std::system_category(), "read");
}
}
}