Reject promise when there is an error reading local data