I have a file.upload() tool that loops through files and
uploads them. If the network drops mid-upload it will throw a #2038
error. If it hits a file it can't read because of permissions it
throws a #2038 error. I need to be able to tell the difference
because if the network goes away I need to stop the job, but if it
hits permission problems I want to just skip to the next file and
move on. Is there any way to detect the what the real error is?
Instead of this pointlessly generic error?