From 8180a2b299682aa14c14f42e1e810945511abc34 Mon Sep 17 00:00:00 2001 From: flagarde Date: Thu, 31 Oct 2024 20:38:00 +0800 Subject: [PATCH] fix --- cpp-terminal/private/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp-terminal/private/file.cpp b/cpp-terminal/private/file.cpp index b284184e..a7c589f4 100644 --- a/cpp-terminal/private/file.cpp +++ b/cpp-terminal/private/file.cpp @@ -149,7 +149,7 @@ std::string Term::Private::InputFileHandler::read() const } catch(const ErrnoException& exception) { - if(exception.code() != 25 && exception.code() != 0) throw; + if(exception.code() != 25 && exception.code() != 0 && exception.code() != 19) throw; } std::string ret(nread, '\0'); if(nread != 0)