Skip to content

Commit

Permalink
Fix: I/O error 메시지 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ykoh42 committed May 23, 2021
1 parent b248592 commit 4f5520f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion srcs/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void Server::solveRequest(Connection& connection, Request& request)

}

const char* Server::IOError::what() const throw(){ return ("IO ERROR!!"); }
const char* Server::IOError::what() const throw(){ return ("I/O error occurred."); }

char** Server::createCGIEnv(const Connection& connection) const
{
Expand Down
2 changes: 1 addition & 1 deletion srcs/Server_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void Server::run(void)
}
catch (const std::exception& e)
{
cout << e.what() << endl;
std::cerr << REDB "[" << ft::getCurrentTime() << "] [error] " << e.what() << NC << std::endl;
closeConnection(it2->second.get_m_fd());
}

Expand Down

0 comments on commit 4f5520f

Please sign in to comment.