update demo for catchError