silverwolf-x's picture
download
raw
319 Bytes
export function getErrorMessage(error) {
if (error.graphQLErrors) {
for (const graphQLError of error.graphQLErrors) {
if (
graphQLError.extensions &&
graphQLError.extensions.code === "BAD_USER_INPUT"
) {
return graphQLError.message;
}
}
}
return error.message;
}

Xet Storage Details

Size:
319 Bytes
·
Xet hash:
5afa951ae78df2e2d2c53875f3315c73dc68a934607b6de1dd99a5255002bdb1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.