diff --git a/Code/Framework/AzCore/AzCore/DOM/DomVisitor.h b/Code/Framework/AzCore/AzCore/DOM/DomVisitor.h index c0da56036e..26fb2aa063 100644 --- a/Code/Framework/AzCore/AzCore/DOM/DomVisitor.h +++ b/Code/Framework/AzCore/AzCore/DOM/DomVisitor.h @@ -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 - 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.