If you want to go full hardcore, the moment you create an error handler in the script, it will disable all the popups like this one and you'll have to create your own visuals using the various error callbacks.
I used it to create a manual sample location UX where the search also checks one level into the selected directory (so if a user simply wants to select the Sample Libraries folder instead of having to locate the correct directory), and also checks for changes in the link file so if you have 10 instances in a session, locating the samples in one will automatically refresh the others, eliminating the need to close and reload the project.