Skip to content

Commit ce8863f

Browse files
Merge #347
347: Add logging message in catch r=jbolda a=boydjohnson This will help people debug API key and baseId errors where the airtable api returns an error status code. warn Error fetching tables: Could not find what you are looking for(NOT_FOUND)[Http code 404] Co-authored-by: Boyd Johnson <johnson.boyd@gmail.com>
2 parents 4e204f2 + 3c53464 commit ce8863f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changes/add-logging.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"gatsby-source-airtable": patch
3+
---
4+
5+
Add logging statement
6+

gatsby-node.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ exports.sourceNodes = async (
137137
}, []);
138138
})
139139
.catch((e) => {
140+
console.warn("Error fetching tables: " + e);
140141
throw e;
141142
return;
142143
});

0 commit comments

Comments
 (0)