I am trying to catch SslError in some HttpClient code.
    
    
    import net, httpclient
    
    try:
      var client = newHttpClient(timeout=500)
    except SslError:
      echo("caught SslError")
    
    #Gives this error
    #~/ntplayground2.nim(5, 8) Error: undeclared identifier: 'SslError'
    
    
    
    
    Run

To my understanding SslError is in the net module.

[https://nim-lang.org/docs/net.html#SslError](https://nim-lang.org/docs/net.html#SslError)

I do not understand why it is undeclared? Or how to resolve the problem.

Thanks. 

Reply via email to