Skip to content

Commit f4aeccd

Browse files
committed
Throw error instead of fatalError
1 parent bebba90 commit f4aeccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/Sources/MacroExamples/Implementation/Peer/AddAsyncMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public struct AddAsyncMacro: PeerMacro {
8282
successReturnType = type
8383

8484
case .some(.expr(_)):
85-
fatalError("expression not available here")
85+
throw CustomError.message("Found unexpected value generic in Result type")
8686

8787
case .none:
8888
successReturnType = nil

0 commit comments

Comments
 (0)