kirenbahm / ENP_TOOLS

Scripts used to pre- and post-process data
0 stars 2 forks source link

Fix error message when directory/file not found #14

Closed kirenbahm closed 4 years ago

kirenbahm commented 4 years ago

In the scripts generateComputedMatlab.m and ANALYSIS_COMPARE.m, the user is asked to input the location of several directories and key files. Both scripts will check for the existence of these directories and files, and generate an error if they are not found.

The problem is that the error message is not very helpful. Currently it is something like:

...exception in::extractComputedData(INI)
msgException =
    'Error using generateComputedMatlab (line 136)
     Directory not found.'

I would like the error messages to be changed to something more informative, like: INI.MATLAB_SCRIPTS directory was not found at '..\ENPMS\'.

I would like the script to check for the existence of all directories/files at once, and list all that were not found at once, instead of exiting after the first one is not found.