throw an error if the file id is not found.

Signed-off-by: Johny Jose <johny@playlyfe.com>
Merge pull request #7 from atrniv/master

Throw an error if the file id is not found.