Skip to content

Commit

Permalink
Throw error if website not found in index
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-senechal committed Dec 19, 2024
1 parent 1d0d16b commit 141de01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/lib/index/read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function getWebsiteOwner(

const keys = await provider.getStorageKeys(scAddress, prefix)
if (keys.length === 0) {
return ''
throw new Error('Website not found in the index')
}

const ownerKey = keys[0]
Expand Down

0 comments on commit 141de01

Please sign in to comment.