mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
**Problem**
The Scala 3 syntax reformat (f9688c146) turned braced catch blocks such
as
catch { case e: Exception => e.printStackTrace(); 1 }
into one-line catch cases. A one-line catch case body is a single
expression, so the semicolon ends the catch case and the value after it
becomes a separate statement that is always the result. ForkTest always
saw an exit code of 1 and both of its properties failed, and
extractLicenses0 in the build always returned Nil instead of the
license files referenced by NOTICE.
**Solution**
Put the catch case bodies on their own lines so the trailing value is
part of the catch case again.
Generated-by: Claude Opus 5.5
Co-authored-by: Claude Opus 5.5 <[email protected]>