Appsync Mock: Util.error or #return continues execution of pipeline and resolvers. #6640
Labels
bug
Something isn't working
mock
Issues tied to the mock functionality
pending-release
Code has been merged but pending release
Describe the bug
As of version 4.42.0 and above, appsync simulator is not aborting on #return or $util.error. My pipeline functions continue to execute after an error is thrown, all the way until the resolver template. If I downgrade to 4.41.2, the problem is gone.
Amplify CLI Version
Affecting 4.42.0 and 4.43.0
To Reproduce
Throw an exception in a vtl template. $util.error("ERROR"). It will continue to execute future pipeline and resolvers.
Expected behavior
Prevents subsequent functions from being executed.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: