Forgot the error handling.

My bad :(
Merge pull request #51 from binford2k/features/add_adhoc_file_sharing

Forgot the error handling.