Skip to content

Commit

Permalink
fix: how warnings are displayed (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon authored Jan 9, 2025
1 parent ab1ab58 commit 6ca1c7d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 23 deletions.
78 changes: 58 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"chai": "^5.1.2",
"husky": "^9.1.7",
"jest": "^29.7.0",
"knip": "^5.41.1",
"knip": "^5.42.0",
"lint-staged": "^15.3.0",
"lodash": "^4.17.21",
"mocha": "^11.0.1",
Expand All @@ -96,7 +96,7 @@
"ts-jest-mock-import-meta": "^1.2.1",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"validate-branch-name": "^1.3.1",
"wireit": "^0.14.9"
},
Expand Down
4 changes: 3 additions & 1 deletion src/commands/sgd/source/delta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ export default class SourceDeltaGenerate extends SfCommand<SgdResult> {
}
try {
const jobResult = await sgd(config)
jobResult.warnings?.forEach(this.warn)
for (const warning of jobResult.warnings) {
this.warn(warning.message)
}
this.info(messages.getMessage('info.EncourageSponsorship'))
} catch (err) {
if (err instanceof Error) {
Expand Down

0 comments on commit 6ca1c7d

Please sign in to comment.