mirror of
https://github.com/go-vikunja/vikunja.git
synced 2025-12-05 19:16:51 -06:00
fix(test): include response body in error
This commit is contained in:
@@ -86,7 +86,8 @@ export class Factory {
|
||||
)
|
||||
|
||||
if (!response.ok()) {
|
||||
throw new Error(`Failed to seed data for table ${table}: ${response.status()} ${response.statusText()}`)
|
||||
const body = await response.json()
|
||||
throw new Error(`Failed to seed data for table ${table} (${response.status()}): ${body.message}`)
|
||||
}
|
||||
|
||||
return response.json()
|
||||
|
||||
Reference in New Issue
Block a user