added a status check for from-file success
Merge pull request #144 from Pomax/fromfile

added a status check for from-file success