tls: throw an error, not string

Reviewed-By: Fedor Indutny <fedor@indutny.com>
Merge remote-tracking branch 'upstream/master'