Fix a build issue

Signed-off-by: Nicholas Van Sickle <nvsickle@amazon.com>
This commit is contained in:
Nicholas Van Sickle
2021-12-02 17:49:29 -08:00
parent 4dbce4275b
commit 59a2216584
@@ -233,9 +233,9 @@ namespace AZ::Dom
//! Helper method, constructs a failure \ref Result with the specified code and supplemental info specified by a format string
//! and its arguments.
template<class... TArgs>
static Result VisitorFailure(VisitorErrorCode code, TArgs... formatArgs)
static Result VisitorFailure(VisitorErrorCode code, const char* formatString, TArgs... formatArgs)
{
return AZ::Failure(VisitorError(code, AZStd::string::format(formatArgs...)));
return AZ::Failure(VisitorError(code, AZStd::string::format(formatString, formatArgs...)));
}
//! Helper method, constructs a success \ref Result.