-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
🚨This issue needs some love.This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
When creating a new SpeechClient (specifically using keyFilename), and the file does not exist:
' new speech.SpeechClient({keyFile:"my.json"});'
causes:
UnhandledPromiseRejectionWarning
How is the caller supposed to catch or handle this? Does the returned SpeechClient object expose a promise that can be acted upon?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.