Skip to content

Commit 7302697

Browse files
dont print File not found if FOREFIRE home var exists #125
1 parent 49150f4 commit 7302697

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/HttpCommandServer.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,14 @@ namespace http_command {
291291
return buildResponse("200 OK", "text/html; charset=UTF-8", body);
292292
} else {
293293
if (!fileExists(path)) {
294-
cout << "File not found: " << path << std::endl;
295294
if (const char* ffHome = std::getenv("FOREFIREHOME")) {
296295

297296
std::string altPath = std::string(ffHome) +"/tools/htdocs/"+ path;
298-
if (fileExists(altPath))
297+
if (fileExists(altPath)){
299298
path = altPath;
299+
}
300+
} else {
301+
cout << "FOREFIREHOME not set. File not found: " << path << std::endl;
300302
}
301303
}
302304
if (fileExists(path)) {

0 commit comments

Comments
 (0)