throw an error if the file id is not found.

Signed-off-by: Johny Jose <johny@playlyfe.com>