Skip to content

Commit cf3be38

Browse files
committed
Add error logging on deploy
1 parent ecb9fbb commit cf3be38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app/scripts/deploy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ fetch('https://deployment-api.lbogdan.ro/image', {
1515
})
1616
.then(x => {
1717
if (!x.ok) {
18-
throw new Error('Request failed');
18+
return x.json().then(res => {
19+
console.error(res);
20+
throw new Error('Request failed');
21+
});
1922
}
2023

2124
return x.json();

0 commit comments

Comments
 (0)