Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ hasError
Function
hasError
site/src/api/errors.ts:51–52 ·
view source on GitHub ↗
(error: unknown)
Source
from the content-addressed store, hash-verified
49
};
50
51
export
const
hasError = (error: unknown) =>
52
error !== undefined && error !== null;
53
54
export
const
mapApiErrorToFieldErrors = (
55
apiErrorResponse: ApiErrorResponse,
Callers
3
Filter
Function · 0.90
WorkspacesPageView
Function · 0.90
TemplatesPageView
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected