mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
change: error output
This commit is contained in:
@@ -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 "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#define AUTOINDEX_HPP
|
#define AUTOINDEX_HPP
|
||||||
|
|
||||||
#include "webserv.hpp"
|
#include "webserv.hpp"
|
||||||
|
#include "ServerConfig.hpp"
|
||||||
|
|
||||||
class Autoindex
|
class Autoindex
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user