tweak error type
This commit is contained in:
parent
56e8995463
commit
e187c8cd38
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@ import { validateAuth } from './auth'
|
|||
export default function (server: Server, ctx: AppContext) {
|
||||
server.app.bsky.feed.getFeedSkeleton(async ({ params, req }) => {
|
||||
if (params.feed !== 'did:example:alice/app.bsky.feed.generator/whats-alf') {
|
||||
throw new InvalidRequestError('algorithm unsupported')
|
||||
throw new InvalidRequestError(
|
||||
'Unsupported algorithm',
|
||||
'UnsupportedAlgorithm',
|
||||
)
|
||||
}
|
||||
/**
|
||||
* Example of how to check auth if giving user-specific results:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue