Better error messge on open file