René's URL Explorer Experiment


Title: refactor: print nicer error to load config error by KarolosLykos · Pull Request #428 · commitdev/zero · GitHub

Open Graph Title: refactor: print nicer error to load config error by KarolosLykos · Pull Request #428 · commitdev/zero

X Title: refactor: print nicer error to load config error by KarolosLykos · Pull Request #428 · commitdev/zero

Description: zero/internal/config/projectconfig/project_config.go Lines 70 to 74 in 0c9bf0c log.Panicf("failed to read config: %v", err) } err = yaml.Unmarshal(data, &config) if err != nil { log.Panicf("failed to parse config: %v", err) This is a fairly common failure case and it should be pretty obvious to the user how to resolve it, there's no need for the stack trace we get with log.Panicf, let's use exit.Fatal instead.

Open Graph Description: zero/internal/config/projectconfig/project_config.go Lines 70 to 74 in 0c9bf0c log.Panicf("failed to read config:...

X Description: zero/internal/config/projectconfig/project_config.go Lines 70 to 74 in 0c9bf0c log.Panicf("failed to read con...

Opengraph URL: https://github.com/commitdev/zero/pull/428

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:61e4e53a-e7e0-1cbb-016b-59c3971d34e4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA77A:E616D:254FB72:32640A3:6981CB6C
html-safe-nonce0fb9832eea469fc509b8ed98a4e63fb0058c1ad6b6622fbd6b52182a70793b10
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzdBOkU2MTZEOjI1NEZCNzI6MzI2NDBBMzo2OTgxQ0I2QyIsInZpc2l0b3JfaWQiOiI1ODM4MzEzMzg4NjAyNjgzOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac78f2727ad45f62213369f5a5995f61aa260a0814ce119df09a070c3f93123d86
hovercard-subject-tagpull_request:763274910
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/commitdev/zero/pull/428/files
twitter:imagehttps://avatars.githubusercontent.com/u/6889652?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6889652?s=400&v=4
og:image:altzero/internal/config/projectconfig/project_config.go Lines 70 to 74 in 0c9bf0c log.Panicf("failed to read config:...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None95dd6eb30a064b87bd2c653e622fe2eb6a2ec1d12751c5463c252220548e75a4
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/commitdev/zero git https://github.com/commitdev/zero.git
octolytics-dimension-user_id44272088
octolytics-dimension-user_logincommitdev
octolytics-dimension-repository_id203630543
octolytics-dimension-repository_nwocommitdev/zero
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id203630543
octolytics-dimension-repository_network_root_nwocommitdev/zero
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7f9fe298cbc605034955dde47054b68dbf531efd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitdev/zero/pull/428/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitdev%2Fzero%2Fpull%2F428%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitdev%2Fzero%2Fpull%2F428%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=commitdev%2Fzero
Reloadhttps://github.com/commitdev/zero/pull/428/files
Reloadhttps://github.com/commitdev/zero/pull/428/files
Reloadhttps://github.com/commitdev/zero/pull/428/files
commitdev https://github.com/commitdev
zerohttps://github.com/commitdev/zero
Notifications https://github.com/login?return_to=%2Fcommitdev%2Fzero
Fork 53 https://github.com/login?return_to=%2Fcommitdev%2Fzero
Star 582 https://github.com/login?return_to=%2Fcommitdev%2Fzero
Code https://github.com/commitdev/zero
Issues 46 https://github.com/commitdev/zero/issues
Pull requests 11 https://github.com/commitdev/zero/pulls
Discussions https://github.com/commitdev/zero/discussions
Actions https://github.com/commitdev/zero/actions
Projects 0 https://github.com/commitdev/zero/projects
Security 0 https://github.com/commitdev/zero/security
Insights https://github.com/commitdev/zero/pulse
Code https://github.com/commitdev/zero
Issues https://github.com/commitdev/zero/issues
Pull requests https://github.com/commitdev/zero/pulls
Discussions https://github.com/commitdev/zero/discussions
Actions https://github.com/commitdev/zero/actions
Projects https://github.com/commitdev/zero/projects
Security https://github.com/commitdev/zero/security
Insights https://github.com/commitdev/zero/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcommitdev%2Fzero%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcommitdev%2Fzero%2Fissues%2Fnew%2Fchoose
bmonkmanhttps://github.com/bmonkman
commitdev:mainhttps://github.com/commitdev/zero/tree/main
KarolosLykos:issue-427-print_nicer_error_to_load_confighttps://github.com/KarolosLykos/zero/tree/issue-427-print_nicer_error_to_load_config
Conversation 5 https://github.com/commitdev/zero/pull/428
Commits 3 https://github.com/commitdev/zero/pull/428/commits
Checks 0 https://github.com/commitdev/zero/pull/428/checks
Files changed https://github.com/commitdev/zero/pull/428/files
Please reload this pagehttps://github.com/commitdev/zero/pull/428/files
refactor: print nicer error to load config error https://github.com/commitdev/zero/pull/428/files#top
Show all changes 3 commits https://github.com/commitdev/zero/pull/428/files
3c933dc refactor: print nicer error to load config error KarolosLykos Oct 21, 2021 https://github.com/commitdev/zero/pull/428/commits/3c933dcc64301afb6125b662cbcca74f15e3516a
a26c4e1 refactor: print nicer error to load config error KarolosLykos Oct 24, 2021 https://github.com/commitdev/zero/pull/428/commits/a26c4e1320bff22b88e472a3f94245697c662efd
8946fca refactor: print nicer error to load config error KarolosLykos Oct 25, 2021 https://github.com/commitdev/zero/pull/428/commits/8946fcae81dac72c13d1f38893191e23132a9ab3
Clear filters https://github.com/commitdev/zero/pull/428/files
Please reload this pagehttps://github.com/commitdev/zero/pull/428/files
Please reload this pagehttps://github.com/commitdev/zero/pull/428/files
.gitignore https://github.com/commitdev/zero/pull/428/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
go.sum https://github.com/commitdev/zero/pull/428/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
project_config.go https://github.com/commitdev/zero/pull/428/files#diff-ebcabfd36d0acddd39672d8155208d6b584ec378a99a404a04e11f1cb1046285
.gitignorehttps://github.com/commitdev/zero/pull/428/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/KarolosLykos/zero/blob/8946fcae81dac72c13d1f38893191e23132a9ab3/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitdev/zero/pull/428/{{ revealButtonHref }}
https://github.com/commitdev/zero/pull/428/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
go.sumhttps://github.com/commitdev/zero/pull/428/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
View file https://github.com/KarolosLykos/zero/blob/8946fcae81dac72c13d1f38893191e23132a9ab3/go.sum
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitdev/zero/pull/428/{{ revealButtonHref }}
https://github.com/commitdev/zero/pull/428/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
https://github.com/commitdev/zero/pull/428/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63
internal/config/projectconfig/project_config.gohttps://github.com/commitdev/zero/pull/428/files#diff-ebcabfd36d0acddd39672d8155208d6b584ec378a99a404a04e11f1cb1046285
View file https://github.com/KarolosLykos/zero/blob/8946fcae81dac72c13d1f38893191e23132a9ab3/internal/config/projectconfig/project_config.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitdev/zero/pull/428/{{ revealButtonHref }}
https://github.com/commitdev/zero/pull/428/files#diff-ebcabfd36d0acddd39672d8155208d6b584ec378a99a404a04e11f1cb1046285
https://github.com/commitdev/zero/pull/428/files#diff-ebcabfd36d0acddd39672d8155208d6b584ec378a99a404a04e11f1cb1046285
https://github.com/commitdev/zero/pull/428/files#diff-ebcabfd36d0acddd39672d8155208d6b584ec378a99a404a04e11f1cb1046285
https://github.com/commitdev/zero/pull/428/files#diff-ebcabfd36d0acddd39672d8155208d6b584ec378a99a404a04e11f1cb1046285
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.