Updated a few Error.get(..) calls to throw the returned error in metadata parser