The attached patch improves the error message when trying to run bookmark-load on an invalid file or buffer. Thanks, Stefan Kangas