Added an exception for better error reporting with assets and fixed a bad index notice.