its your job (your as in figurative speech not pointing at you ) as a coder (programer - scripter or wot ever) not to let anythig slip pass you, to check for errors before reading return values. and not just to wite func in func all the time expecting that youl not have a single error. Edit: and to add to czards comment on my comment: do you read ini file and do stringsplit with no checking if iniread returned something and stringsplit variable returned array? as you tolded *only nest functions that you can guarantee won't fail* so don't nest them if you know that they can fail and then youl not have problems of checking for errors and trying to pass error to top func, if your code is properly sorted out. Nesting and expecting to find nested error (if you ask me) is dumb for putting in main program code.