Skip to content

Commit 45ed068

Browse files
committed
fix: additional logging on auth failure
1 parent a7ce549 commit 45ed068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/rest-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class RingRestClient {
155155
errorMessage =
156156
`Failed to fetch oauth token from Ring. Verify that your ${authTypeMessage} correct. ` +
157157
responseError
158-
logError(requestError.response)
158+
logError(requestError.response || requestError)
159159
logError(errorMessage)
160160
throw new Error(errorMessage)
161161
}

0 commit comments

Comments
 (0)