Skip to content

Commit 88b623e

Browse files
committed
Remove identifiers from http error
An old upstream change [ci skip]
1 parent ed5e6c4 commit 88b623e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Server/mods/deathmatch/logic/CResource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,7 +2731,7 @@ ResponseCode CResource::HandleRequestActive(HttpRequest* ipoHttpRequest, HttpRes
27312731
}
27322732
else
27332733
{
2734-
SString err("Resource %s is not running.", m_strResourceName.c_str());
2734+
SString err = "That resource is not running.";
27352735
ipoHttpResponse->SetBody(err.c_str(), err.size());
27362736
return HTTPRESPONSECODE_401_UNAUTHORIZED;
27372737
}
@@ -2777,7 +2777,7 @@ ResponseCode CResource::HandleRequestActive(HttpRequest* ipoHttpRequest, HttpRes
27772777
}
27782778
}
27792779

2780-
SString err("Cannot find a resource file named '%s' in the resource %s.", strFile.c_str(), m_strResourceName.c_str());
2780+
SString err = "That resource file could not be found in that resource.";
27812781
ipoHttpResponse->SetBody(err.c_str(), err.size());
27822782
return HTTPRESPONSECODE_404_NOTFOUND;
27832783
}

0 commit comments

Comments
 (0)