Add print exception in index