In the error message, state something like 'file %s does not exists'. It makes debugging much easier.