Skip to content

Commit 1e6e860

Browse files
fix: Pass assertions failures to playwright report
1 parent 91f8e36 commit 1e6e860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/auto.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,15 @@ export async function auto(
149149
if (validatedResponse.error)
150150
{
151151
console.log(`[Auto] Error: ${validatedResponse.error}`);
152+
throw new Error(validatedResponse.error);
152153
}
153154

154155
// Return the output or null if successful with no output
155156
return validatedResponse.output || null;
156157
} catch (error)
157158
{
158159
console.log(`[Auto] Error processing response:`, error);
159-
return null;
160+
throw error;
160161
}
161162
}
162163

0 commit comments

Comments
 (0)