File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
modules/bloop-rifle/src/main/scala/scala/build/blooprifle/internal Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,11 @@ object Operations {
134
134
promise.future
135
135
}
136
136
137
+ private val ignoredErrnos = Set (
138
+ 61 , // Connection refused
139
+ 111 //
140
+ )
141
+
137
142
/** Opens a BSP connection to a running bloop server.
138
143
*
139
144
* Starts a thread to read output from the nailgun connection, and another one to pass input to
@@ -232,10 +237,10 @@ object Operations {
232
237
catch {
233
238
case ex : IOException
234
239
if ex.getCause.isInstanceOf [NativeErrorException ] &&
235
- ex.getCause.asInstanceOf [NativeErrorException ].returnCode == 111 =>
240
+ ignoredErrnos( ex.getCause.asInstanceOf [NativeErrorException ].returnCode) =>
236
241
logger.debug(s " Error when connecting to $socketFile: ${ex.getMessage}" )
237
242
null
238
- case e : NativeErrorException if e.returnCode == 111 =>
243
+ case e : NativeErrorException if ignoredErrnos( e.returnCode) =>
239
244
logger.debug(s " Error when connecting to $socketFile: ${e.getMessage}" )
240
245
null
241
246
}
You can’t perform that action at this time.
0 commit comments