I am writing a validation cloud function that performs multiple checks in sequence and when a check fails it writes error to DB and exits.
I exit using : return context.res
However for some reason function continues after the return statement and executes the remaining function.
I am using Dart 3.0. Can someone please confirm what's the correct way to ensure function execution stops.
Thanks
It's not Appwrite specific. A return statement ends the execution of a function 🧐
I know.. Felt dumb just asking the question. Let me redo the function, its quite big so also often runs into the "curl internal error fails" .. Will update once I know more.
[Closed] Stopping a cloud function
Recommended threads
- Error With iOS Apps
I keep getting the below errors for my flutter app. The clients are registered and have been. This wasn't an issue a few hours ago. AppwriteException: AppwriteE...
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- local build `composer installer:dev` iss...
setup - dev container (default linux universal) WSL (test with gh codespace too) - php 8.5.7 - all extensions installed - `composer install` fine - `composer...