A number of issues lead to unhelpful error messages (e.g. this one and this one).
These should be caught, and more useful information presented to the user.