Skip to main content
MediaKit

error$

Use this function to throw an error on the user side (this will not affect the function type):

import { createCaller, error$ } from '@solid-mediakit/prpc'
let shouldError = false
export const myQuery = createCaller(() => {
if (shouldError) {
return error$('Why did i error')
}
return 'yes'
})

Last updated: 5/30/25, 9:16 AM

MediaKitFully featured, fully customisable static site generation for SolidStart
Community
github