File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ pub fn connect_client(
211
211
runtime,
212
212
} ) ,
213
213
Err ( e) => {
214
- eprintln ! ( "Error: {:?}" , e) ;
214
+ eprintln ! ( "Error connecting to Temporal server : {:?}" , e) ;
215
215
let err_message = e. to_string ( ) . into_bytes ( ) ;
216
216
Err ( CArray :: c_repr_of ( err_message) . unwrap ( ) )
217
217
}
Original file line number Diff line number Diff line change @@ -258,13 +258,14 @@ connectClient rt conf = do
258
258
case result of
259
259
Left errFP -> do
260
260
err <- withForeignPtr errFP $ peek >=> cArrayToText
261
+ let err' = " Error connecting to Temporal server: " <> err
261
262
case retryConfig conf of
262
- Nothing -> putMVar clientPtrSlot (throw $ ClientConnectionError err)
263
+ Nothing -> putMVar clientPtrSlot (throw $ ClientConnectionError err' )
263
264
Just retryConf -> do
264
265
let delayMillis = fromIntegral (initialIntervalMillis retryConf) * multiplier retryConf ^ attempt
265
266
delayMicros = delayMillis * 1000
266
267
if (fmap fromIntegral (maxElapsedTimeMillis retryConf) < Just delayMillis) || (maxRetries retryConf <= attempt)
267
- then putMVar clientPtrSlot (throw $ ClientConnectionError err)
268
+ then putMVar clientPtrSlot (throw $ ClientConnectionError err' )
268
269
else do
269
270
threadDelay $ round delayMicros
270
271
go (attempt + 1 )
You can’t perform that action at this time.
0 commit comments