Skip to content

Commit

Permalink
fix(index): don't limit errorhandling tpo string | Error
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Apr 26, 2022
1 parent 7a3b4be commit d3398cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contentful-ssg/src/index.ts
Expand Up @@ -137,7 +137,7 @@ export const run = async (config: Config): Promise<void> => {

if (error instanceof ValidationError) {
ctx.stats.addSkipped(transformContext, error);
} else if (typeof error === 'string' || error instanceof Error) {
} else {
ctx.stats.addError(transformContext, error);
}
}
Expand Down

0 comments on commit d3398cd

Please sign in to comment.