How to stop error message on open file script
The below script I've been running for years. I use this to open specific folders so that I can choose the appropriate psd file for use. It works fine
but sometimes after I execute the script and the open dialog box appears I decide not to choose one of the psd files and just close the dialog box.
When I do this I get the below error message: Is there a way to modify this javascript so If I don't choose a psd file and close the dialog box I won't get the below message.

Below is my script:
// UI strings to be localized
var uiTitleSelectGridFile = "Select a Texture file";
var folder = new Folder(app.path.parent + "/Photoshop Plugins Presets N Stuff/Textures")
var openFile = folder.openDlg(uiTitleSelectGridFile, "PSD:*.psd");
open (openFile);