@@ -133,20 +133,19 @@ export const util = {
133133 appendError : function ( message , errorType , data , errorInfo ) {
134134 const error = { message, errorType, data, errorInfo }
135135 if ( console . appendError ) {
136- // LocalStack is adding `appendError` to console to allow adding to context.outErrors
136+ // LocalStack is adding `appendError` to console, allowing to push errors to context.outErrors
137137 console . appendError ( error )
138138 } else {
139+ // TODO: remove this legacy implementation. We are still supporting it for backward compatibility and prevent
140+ // breaking user's code calling appendError.
139141 // This will be handled in LocalStack in a side channel by printing to stderr
140142 console . error ( { message, errorType, data, errorInfo } ) ;
141143 }
142144 } ,
143145 error : function ( message , errorType , data , errorInfo ) {
144- // This will be handled in LocalStack in a side channel by printing to stderr
145- console . error ( { message, errorType, data, errorInfo } ) ;
146146 throw new AppSyncUserError ( message , errorType , data , errorInfo )
147147 } ,
148148 unauthorized : function ( ) {
149- // This will be handled in LocalStack in a side channel by printing to stderr
150149 throw new AppSyncUserError ( "Unauthorized" , "UnauthorizedException" )
151150 } ,
152151 time : {
0 commit comments