We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9f9850 commit 792892cCopy full SHA for 792892c
src/rfc9421/sign.ts
@@ -47,13 +47,13 @@ export class RFC9421SignatureBaseFactory {
47
const params = component.split(';');
48
let type = params[0];
49
if (!type) {
50
- throw new Error('Type is empty');
+ throw new Error(`Type is empty: ${component}`);
51
}
52
if (type.startsWith('"')) {
53
if (type.endsWith('"')) {
54
type = type.slice(1, -1);
55
56
- throw new Error(`Invalid component type string: ${type}`);
+ throw new Error(`Invalid component type string: ${component}`);
57
58
59
if (type === '@signature-params') {
0 commit comments