Skip to content

Commit 5ba0934

Browse files
committed
fix: throw when signature policy cannot be parsed
1 parent f4069a5 commit 5ba0934

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ts/utils/publishConfig.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ export async function getPublishConfigFromPeerId(
3939
return {
4040
type: PublishConfigType.Anonymous
4141
}
42+
43+
default:
44+
throw new Error(`Unknown signature policy "${signaturePolicy}"`)
4245
}
4346
}

0 commit comments

Comments
 (0)