Use string for extension.code instead of number "404"

This commit is contained in:
Grzegorz Leoniec 2018-12-29 14:15:22 +01:00
parent c310644edc
commit 296fc5a039
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -105,7 +105,7 @@ const scraper = {
)
if (isEmpty(output)) {
throw new ApolloError('Not found', 404)
throw new ApolloError('Not found', 'NOT_FOUND')
}
// fix youtube start parameter