MCPcopy Index your code
hub / github.com/simstudioai/sim / getGoogleFormsErrorMessage

Function getGoogleFormsErrorMessage

apps/sim/tools/google_forms/utils.ts:11–19  ·  view source on GitHub ↗
(data: unknown, fallback: string)

Source from the content-addressed store, hash-verified

9}
10
11export function getGoogleFormsErrorMessage(data: unknown, fallback: string): string {
12 if (!isRecord(data)) return fallback
13
14 const { error } = data
15 if (!isRecord(error)) return fallback
16
17 const { message } = error
18 return typeof message === 'string' ? message : fallback
19}
20
21export function buildListResponsesUrl(params: {
22 formId: string

Callers 7

list_watches.tsFile · 0.90
create_watch.tsFile · 0.90
renew_watch.tsFile · 0.90
create_form.tsFile · 0.90
get_form.tsFile · 0.90
batch_update.tsFile · 0.90

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected