Skip to content

Commit c502806

Browse files
authored
workflow: enhance error messages and improve the debugging experience (#363)
1 parent 195eaad commit c502806

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

packages/midscene/modern.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ export default defineConfig({
2020
__VERSION__: version,
2121
},
2222
splitting: true,
23+
sourceMap: true,
2324
},
2425
});

packages/midscene/src/ai-model/ui-tars-planning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export async function vlmPlanning(options: {
133133
});
134134

135135
if (transformActions.length === 0) {
136-
throw new Error('No actions found', {
136+
throw new Error(`No actions found with reason: ${res.content}`, {
137137
cause: {
138138
prediction: res.content,
139139
parsed,

packages/midscene/tests/ai/evaluate/ai-data/assertion/online_order.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"testDataPath": "test-data/online_order",
33
"testCases": [
44
{
5-
"prompt": "the 'select option' button is yellow",
5+
"prompt": "the 'select option' button background color is yellow",
66
"expected": true
77
},
88
{

packages/midscene/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4+
"sourceMap": true,
45
"declaration": true,
56
"emitDeclarationOnly": true,
67
"esModuleInterop": true,

packages/visualizer/modern.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default defineConfig({
4242
platform: 'browser',
4343
outDir: 'dist',
4444
target: 'es2018',
45+
sourceMap: true,
4546
},
4647
{
4748
...commonConfig,

packages/visualizer/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4+
"sourceMap": true,
45
"declaration": true,
56
"emitDeclarationOnly": true,
67
"esModuleInterop": true,

0 commit comments

Comments
 (0)