nomagick commited on
Commit
8a8ae10
·
unverified ·
1 Parent(s): 5f6cfdf

fix: curl error category

Browse files
Files changed (1) hide show
  1. src/services/curl.ts +3 -2
src/services/curl.ts CHANGED
@@ -401,14 +401,15 @@ export class CurlControl extends AsyncService {
401
  digestCurlCode(code: CurlCode, msg: string) {
402
  switch (code) {
403
  // 400 User errors
404
- case CurlCode.CURLE_GOT_NOTHING:
405
  case CurlCode.CURLE_COULDNT_RESOLVE_HOST:
406
- case CurlCode.CURLE_REMOTE_ACCESS_DENIED: {
407
  return new AssertionFailureError(msg);
408
  }
409
 
410
  // Retryable errors
 
411
  case CurlCode.CURLE_RECV_ERROR:
 
412
  case CurlCode.CURLE_OPERATION_TIMEDOUT:
413
  case CurlCode.CURLE_SSL_CONNECT_ERROR:
414
  case CurlCode.CURLE_QUIC_CONNECT_ERROR:
 
401
  digestCurlCode(code: CurlCode, msg: string) {
402
  switch (code) {
403
  // 400 User errors
 
404
  case CurlCode.CURLE_COULDNT_RESOLVE_HOST:
405
+ {
406
  return new AssertionFailureError(msg);
407
  }
408
 
409
  // Retryable errors
410
+ case CurlCode.CURLE_REMOTE_ACCESS_DENIED:
411
  case CurlCode.CURLE_RECV_ERROR:
412
+ case CurlCode.CURLE_GOT_NOTHING:
413
  case CurlCode.CURLE_OPERATION_TIMEDOUT:
414
  case CurlCode.CURLE_SSL_CONNECT_ERROR:
415
  case CurlCode.CURLE_QUIC_CONNECT_ERROR: