Skip to content

Commit

Permalink
πŸ”Š Improve config error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wei committed Nov 23, 2024
1 parent dd5fa99 commit 851f139
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-ghosts-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"socialify": patch
---

Improve config error logging
2 changes: 1 addition & 1 deletion .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
tag_name: v${{ steps.get_version.outputs.version }}
name: Release v${{ steps.get_version.outputs.version }}
body: |
[${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
https://github.com/${{ github.repository }}/commit/${{ github.sha }}
See [CHANGELOG.md](./CHANGELOG.md) for details.
draft: false
Expand Down
3 changes: 2 additions & 1 deletion common/renderCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export async function getCardConfig(query: QueryType) {

const config = mergeConfig(repository, query)

if (!config) throw Error('Configuration failed to generate')
if (!config)
throw Error(`[${query._owner}/${query._name}] Failed to generate config.`)

return config
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"postinstall": "cp ./node_modules/yoga-wasm-web/dist/yoga.wasm ./public/yoga.wasm; cp ./node_modules/@resvg/resvg-wasm/index_bg.wasm ./public/resvg_bg.wasm",
"prepare": "is-ci || husky"
},
"engines": {
"node": "22"
},
"dependencies": {
"@resvg/resvg-wasm": "^2.6.2",
"autoprefixer": "^10.4.20",
Expand Down

0 comments on commit 851f139

Please sign in to comment.