We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406e2af commit a6a821aCopy full SHA for a6a821a
src/api_client.ts
@@ -28,7 +28,7 @@ export class HerokuAPIError extends CLIError {
28
29
constructor(httpError: HTTPError) {
30
let options: IHerokuAPIErrorOptions = httpError.body
31
- if (!options.message) throw httpError
+ if (!options || !options.message) throw httpError
32
let info = []
33
if (options.id) info.push(`Error ID: ${options.id}`)
34
if (options.app && options.app.name) info.push(`App: ${options.app.name}`)
0 commit comments