Added get content on file and error raise