This fix improves the wording of a message that appears when the currently active profile does not match a profile configured in the ask-resources.json file in the currently opened skill. It also directs the user on what needs to be changed to resolve it.
Prior: "Failed to read skill package path due to AskError: Failed to get skill package path in ask-resources.json, please specify 'src' field in 'skillMetadata' under your profile name., the skill package watcher won't start."
Now: "Failed to read skill package path due to AskError: Currently active profile, 'default', was not found in 'ask-resources.json'. Profiles configured for this skill: 'acdl'. Please ensure that the name of your active profile, 'default', matches a profile configured in 'ask-resources.json' and '.ask/ask-states.json'., the skill package watcher won't start."
Motivation and Context
The previous error message was misleading and did not point out the true cause of the issue.
Testing
Manually tested
Types of changes
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[X] My code follows the code style of this project
[ ] My change requires a change to the documentation
This fix improves the wording of a message that appears when the currently active profile does not match a profile configured in the
ask-resources.json
file in the currently opened skill. It also directs the user on what needs to be changed to resolve it.Prior: "Failed to read skill package path due to AskError: Failed to get skill package path in ask-resources.json, please specify 'src' field in 'skillMetadata' under your profile name., the skill package watcher won't start."
Now: "Failed to read skill package path due to AskError: Currently active profile, 'default', was not found in 'ask-resources.json'. Profiles configured for this skill: 'acdl'. Please ensure that the name of your active profile, 'default', matches a profile configured in 'ask-resources.json' and '.ask/ask-states.json'., the skill package watcher won't start."
Motivation and Context
The previous error message was misleading and did not point out the true cause of the issue.
Testing
Manually tested
Types of changes
Checklist
License