added error
Merge pull request #3 from MatthewMueller/master

added error in cases where there is no file.slice