You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: `Successfully queued accessibility scan, you will get a report via email within 5 minutes.`,
32
-
},
33
-
],
34
-
};
35
-
}catch(error){
36
-
return{
37
-
content: [
38
-
{
39
-
type: "text",
40
-
text: `Failed to start accessibility scan: ${errorinstanceofError ? error.message : "Unknown error"}. Please open an issue on GitHub if the problem persists`,
41
-
isError: true,
42
-
},
43
-
],
44
-
isError: true,
45
-
};
21
+
if(!scanId||!scanRunId){
22
+
thrownewError(
23
+
"Unable to start a accessibility scan, please try again later or open an issue on GitHub if the problem persists",
24
+
);
46
25
}
26
+
27
+
return{
28
+
content: [
29
+
{
30
+
type: "text",
31
+
text: `Successfully queued accessibility scan, you will get a report via email within 5 minutes.`,
text: `Failed to start accessibility scan: ${errorinstanceofError ? error.message : "Unknown error"}. Please open an issue on GitHub if the problem persists`,
0 commit comments