fix for edit SC action in entity context menu (#6686)

* on demand reflect az events when they are the return value of ebuses

Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>

* fix crash and functionality for edit sc editor context menu action

Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
carlitosan
2022-01-05 19:04:55 -08:00
committed by GitHub
parent 09fd52ef73
commit da0a10bb4c
2 changed files with 5 additions and 3 deletions
@@ -1139,7 +1139,7 @@ namespace ScriptCanvasEditor
auto loadedGraphOutcome = LoadFromFile(fileAssetId.Path().c_str());
if (!loadedGraphOutcome.IsSuccess())
{
return AZ::Failure(AZStd::string("Failed to load graph at %s", fileAssetId.Path().c_str()));
return AZ::Failure(AZStd::string::format("Failed to load graph at %s", fileAssetId.Path().c_str()));
}
auto loadedGraph = loadedGraphOutcome.TakeValue();