Library: Better error reporting when loading fails