change: error output

This commit is contained in:
Talyx
2022-02-22 19:45:37 +03:00
parent 4471bc46c0
commit 034efe51fb
2 changed files with 2 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ std::string Autoindex::getPage(std::string path, std::string allpath, std::strin
<p>\n"; <p>\n";
if (dir == NULL) if (dir == NULL)
{ {
std::cerr << RED << "AutoindexError: could not open \"" DBOUT << WARNING << getDebugTime() << FAIL << " AutoindexError: could not open \""
<< allpath << "\" directory." << ZERO_C << std::endl; << allpath << "\" directory." << ZERO_C << std::endl;
return ""; return "";
} }

View File

@@ -2,6 +2,7 @@
#define AUTOINDEX_HPP #define AUTOINDEX_HPP
#include "webserv.hpp" #include "webserv.hpp"
#include "ServerConfig.hpp"
class Autoindex class Autoindex
{ {