Skip to content

Commit a8a9f3a

Browse files
committed
rethroew StopMacroExpansion without logging.
1 parent d9db9ee commit a8a9f3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jsoniter-scala-macros/shared/src/main/scala-3/JsonCodeMaker.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ object JsonCodecMaker {
481481
try {
482482
make[A](cfg)
483483
} catch {
484+
case ex: scala.quoted.runtime.StopMacroExpansion =>
485+
throw ex
484486
case NonFatal(ex) =>
485487
println(s"catched exception during macro expansion: $ex: msg=${ex.getMessage}")
486488
ex.printStackTrace()
@@ -2963,7 +2965,7 @@ object JsonCodecMaker {
29632965

29642966
}
29652967
}
2966-
2968+
29672969
val needDefs: List[Statement] = (decodeMethodDefs.values.toList: List[Statement]) ++
29682970
(encodeMethodDefs.values.toList: List[Statement]) ++
29692971
(fieldIndexAccessors.values.toList: List[Statement]) ++

0 commit comments

Comments
 (0)