Skip to content

Commit 361ece6

Browse files
authored
test(image): improve error text (#3278)
1 parent e0fb23e commit 361ece6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/modules/image.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function assertWorkingUrl(address: string): Promise<void> {
3030
https
3131
.get(address, ({ statusCode, headers: { location } }) => {
3232
if (statusCode == null) {
33-
reject(new Error(`No StatusCode, expected 200`));
33+
reject(new Error(`No StatusCode, expected 200 for '${address}'`));
3434
} else if (statusCode === 200) {
3535
resolve(true);
3636
} else if (statusCode >= 300 && statusCode < 400 && location) {
@@ -47,7 +47,7 @@ async function assertWorkingUrl(address: string): Promise<void> {
4747
} else {
4848
reject(
4949
new Error(
50-
`Bad StatusCode ${statusCode} expected 200 for '${location}'`
50+
`Bad StatusCode ${statusCode} expected 200 for '${address}'`
5151
)
5252
);
5353
}

0 commit comments

Comments
 (0)