# Do I need to return an placeholder when a macro fails?

**URL:** <https://forums.swift.org/t/do-i-need-to-return-an-placeholder-when-a-macro-fails/87750>\
**Category:** Macros\
**Created:** [June 27, 2026, 12:18am UTC](https://forums.swift.org/t/do-i-need-to-return-an-placeholder-when-a-macro-fails/87750 "2026-06-27T00:18:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTMacUser](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ctmacuser/32/1802_2.png) [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Post date:** [June 27, 2026, 12:18am UTC](https://forums.swift.org/t/do-i-need-to-return-an-placeholder-when-a-macro-fails/87750/1 "2026-06-27T00:18:30Z")

</div>

Let’s say I have an expression macro that places a `Bool`. If the macro emits an error, will the system will automatically create a `Bool` dummy so the compiler can check later parts of the code? Or would I have to do it myself? I hope it’s the former, since it’s something that it could do.
