fix: return error tuples instead of silent {:ok, ""} in execute_macro (CSM-022)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-11 09:07:44 +02:00
parent 2be43ca06d
commit a4ecbabc21
3 changed files with 12 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ defmodule BDS.Scripting.ApiTest do
bad_source = "function render() error('boom') end"
assert {:ok, ""} = BDS.Scripting.execute_macro(project.id, bad_source, [])
assert {:error, _reason} = BDS.Scripting.execute_macro(project.id, bad_source, [])
end
test "project scripting exposes project, post, script, template, metadata, and task namespaces",