throw an Error if options.app is not specified