have a tantrum if crypto.sign produces nothing.

i tried to use my pub key to sign a request and it produced an empty signature. the code could do more to punish me for my stupidity.