Updated file error messaging
Don't reinvent the wheel