Return error on project creation macro
Axolotl
Registered Posts: 15 ✭✭✭
Hi Folks,
As a project creation macro, output must be resultType = "JSON_OBJECT".
I want to catch some error during the execution and then return specific return messages.
Is it possible ? Something like : return json.dumps({"error": project_key})Thanks in advance.
Best
Operating system used: alma linux
Tagged:
Best Answer
-
Found a way with Dataiku data engineer :
Raise a ValueError explicitly in the macro code to write in the output something.