Fixes #4 by handling ?error in browser URL query and throwing exception with details