Report errors properly

Use the proper share API for reporting errors, instead of just a message
box.