You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Routers/FunctionsRouter.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ export class FunctionsRouter extends PromiseRouter {
109
109
constresponseObject={
110
110
success: function(result){
111
111
if(responseSent){
112
-
thrownewError('Response already sent');
112
+
thrownewError('Cannot call success() after response has already been sent. Make sure to call success() or error() only once per cloud function execution.');
113
113
}
114
114
responseSent=true;
115
115
constresponse={
@@ -124,7 +124,7 @@ export class FunctionsRouter extends PromiseRouter {
124
124
},
125
125
error: function(message){
126
126
if(responseSent){
127
-
thrownewError('Response already sent');
127
+
thrownewError('Cannot call error() after response has already been sent. Make sure to call success() or error() only once per cloud function execution.');
0 commit comments