Skip to content

Commit

Permalink
Added diagnostic message for compile-time failure (#1224)
Browse files Browse the repository at this point in the history
Added diagnostic message for compile-time failure
  • Loading branch information
rssh authored Dec 3, 2024
1 parent 6d53f7f commit 0ad7159
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ object JsonCodecMaker {
report.errorAndAbort("'decodingOnly' and 'encodingOnly' cannot be 'true' simultaneously")
cfg
}) catch {
case ex: CompileTimeEvalException => report.errorAndAbort("Can't evaluate compile-time expression", ex.expr)
case ex: CompileTimeEvalException => report.errorAndAbort(s"Can't evaluate compile-time expression: ${ex.message}", ex.expr)
}
}

Expand Down

0 comments on commit 0ad7159

Please sign in to comment.