 prereleases and improve error message.
 Pull request {#2344}[https://github.com/rubygems/rubygems/pull/2344] by David Rodríguez.