UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

11 lines (9 loc) 241 B
export function prettifyQuotaError(message: string) { return (err: Error & {statusCode?: number}): Error & {statusCode?: number} => { if (err.statusCode === 402) { err.message = message throw err } throw err } }