MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / getErrorMessage

Function getErrorMessage

apps/web/ui/Auth/index.tsx:31–42  ·  view source on GitHub ↗
(error: string)

Source from the content-addressed store, hash-verified

29);
30
31function getErrorMessage(error: string) {
32 switch (error) {
33 case 'private':
34 return 'The community you are trying to access is private.';
35 case 'forbidden':
36 return 'You are not allowed to access this page.';
37 case 'CredentialsSignin':
38 return 'Credentials are invalid.';
39 default:
40 return 'An unexpected error occurred. Please try again later.';
41 }
42}
43
44function Error({ error }: { error?: string }) {
45 if (!error) {

Callers 1

ErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected