try-catch in frontend