Open alexaung opened 2 years ago
I got "could not download file" error sometime because of server issue.
But I could not find the way to show this error message to user. Is there a way tho show the such kind of error message to user?
@alexaung you can use a try catch
try { saveAs(this.urlPdf, `${this.title}.pdf`); } catch (error) { console.error("Failed to download PDF"); }
I got "could not download file" error sometime because of server issue.
But I could not find the way to show this error message to user. Is there a way tho show the such kind of error message to user?