File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
modules/integration/src/test/scala/scala/cli/integration Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -133,11 +133,17 @@ object TestUtil {
133
133
try run
134
134
catch {
135
135
case t : Throwable =>
136
- if (count >= maxAttempts)
136
+ if (count >= maxAttempts) {
137
+ System .err.println(s " $maxAttempts attempts failed, caught $t. Giving up. " )
137
138
throw new Exception (t)
139
+ }
138
140
else {
139
- System .err.println(s " Caught $t, trying again in $waitDuration… " )
141
+ val remainingAttempts = maxAttempts - count
142
+ System .err.println(
143
+ s " Caught $t, $remainingAttempts attempts remaining, trying again in $waitDuration… "
144
+ )
140
145
Thread .sleep(waitDuration.toMillis)
146
+ System .err.println(s " Trying attempt $count out of $maxAttempts... " )
141
147
helper(count + 1 )
142
148
}
143
149
}
You can’t perform that action at this time.
0 commit comments