Skip to content

Commit 146181b

Browse files
committed
better error from example client
1 parent e2088dc commit 146181b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/clients/typescript/helpers/ConformanceOAuthProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export class ConformanceOAuthProvider implements OAuthClientProvider {
6767
throw new Error('No auth code in redirect URL');
6868
}
6969
} else {
70-
throw new Error('No redirect location received');
70+
throw new Error(
71+
`No redirect location received, from '${authorizationUrl.toString()}'`
72+
);
7173
}
7274
} catch (error) {
7375
console.error('Failed to fetch authorization URL:', error);

0 commit comments

Comments
 (0)