-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.log
More file actions
24 lines (20 loc) · 2.11 KB
/
error.log
File metadata and controls
24 lines (20 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Loading svelte-check in workspace: c:\dev\SiDia-AI
Getting Svelte diagnostics...
c:\dev\SiDia-AI\[32msrc\routes\+page.svelte[39m:129:23
[31mError[39m: 'result.disease' is possibly 'null'. (ts)
[36m function generateScript(result: DiagnosisResult): { role: 'AI' | 'Doctor'; text: string }[] {
const diseaseName = [35mresult.disease[36m.name;
const confidence = Math.round((result.matchCount / result.totalSymptoms) * 100);[39m
c:\dev\SiDia-AI\[32msrc\routes\+page.svelte[39m:138:37
[31mError[39m: 'result.disease' is possibly 'null'. (ts)
[36m },
{ role: 'AI', text: `Analysis: ${[35mresult.disease[36m.description}` }
];[39m
c:\dev\SiDia-AI\[32msrc\routes\+page.svelte[39m:150:40
[31mError[39m: 'result.disease' is possibly 'null'. (ts)
[36m script.push({ role: 'Doctor', text: `Hmm. ${diseaseName}. Doctor's recommendation:` });
script.push({ role: 'Doctor', text: [35mresult.disease[36m.advice });
}[39m
====================================
[31msvelte-check found 3 errors and 0 warnings in 1 file
[39m