Skip to content

Commit

Permalink
workflow: enhance error messages and improve the debugging experience (
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw authored Feb 8, 2025
1 parent 195eaad commit c502806
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/midscene/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export default defineConfig({
__VERSION__: version,
},
splitting: true,
sourceMap: true,
},
});
2 changes: 1 addition & 1 deletion packages/midscene/src/ai-model/ui-tars-planning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export async function vlmPlanning(options: {
});

if (transformActions.length === 0) {
throw new Error('No actions found', {
throw new Error(`No actions found with reason: ${res.content}`, {
cause: {
prediction: res.content,
parsed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"testDataPath": "test-data/online_order",
"testCases": [
{
"prompt": "the 'select option' button is yellow",
"prompt": "the 'select option' button background color is yellow",
"expected": true
},
{
Expand Down
1 change: 1 addition & 0 deletions packages/midscene/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"baseUrl": ".",
"sourceMap": true,
"declaration": true,
"emitDeclarationOnly": true,
"esModuleInterop": true,
Expand Down
1 change: 1 addition & 0 deletions packages/visualizer/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default defineConfig({
platform: 'browser',
outDir: 'dist',
target: 'es2018',
sourceMap: true,
},
{
...commonConfig,
Expand Down
1 change: 1 addition & 0 deletions packages/visualizer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"baseUrl": ".",
"sourceMap": true,
"declaration": true,
"emitDeclarationOnly": true,
"esModuleInterop": true,
Expand Down

0 comments on commit c502806

Please sign in to comment.