Skip to content

Commit 792892c

Browse files
committed
err msg
1 parent c9f9850 commit 792892c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rfc9421/sign.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ export class RFC9421SignatureBaseFactory {
4747
const params = component.split(';');
4848
let type = params[0];
4949
if (!type) {
50-
throw new Error('Type is empty');
50+
throw new Error(`Type is empty: ${component}`);
5151
}
5252
if (type.startsWith('"')) {
5353
if (type.endsWith('"')) {
5454
type = type.slice(1, -1);
5555
}
56-
throw new Error(`Invalid component type string: ${type}`);
56+
throw new Error(`Invalid component type string: ${component}`);
5757
}
5858

5959
if (type === '@signature-params') {

0 commit comments

Comments
 (0)