Catching error in code before ui section

In a shiny app, I read a file from a URL. Then I have the ui and server panel, and then the run shiny command.
Regularly the file is being updated and it crashes the app with an obscure message. shiny app does not even run.
Is there a simple way to print a message upon this crash like "File being updated, please try later"?

You're much more likely to get help if you provide a reprex of your problem. You might find it useful to read

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.