I am using Yii2 Pjax widget which is unable to throw error from controller due to which I am unable to log error for users when there is any error coming from the controller. PJAX code CONTROLLER code: I have tried below clientOptions but not working Also used javascript but no help :- Is there any way from which I