I have developed customised print task geo-processing service and consuming in Print Widget (WAB-2.10).
I observed that if the execution mode of service is "Asynchronous" then widget is not showing error message on UI if failed to execute. Code is not executing '_onPrintError' function.
this.fileHandle.then(lang.hitch(this, '_onPrintComplete'), lang.hitch(this, '_onPrintError'));
I also attached on error event to this.printTask object but doesn't execute on 'esrijobfailed'.
I have configured service to show\return error messages. If there is no error then printing is working fine.
Is there any way to handle error call back on async call?
I just want to notify user that service execution is fail or hide progress shelter otherwise it will be on UI until i cleared prints manually.
Any help would be appreciated.