apm icon indicating copy to clipboard operation
apm copied to clipboard

Error message improvement: which extension need parameter to set

Open sjabberwocky opened this issue 1 year ago • 3 comments

When apm generates the description, it is not easy to understand which extension missed the parameter value.

For example, apm gives me this message: generate/app-descriptor :: Parameter not valid: bundleSeedId=.

And it would be much faster to find context of this parameter if this message would contain info that this parameter is related to Push Notification One Signal extension.

sjabberwocky avatar Aug 18 '23 15:08 sjabberwocky

Sure, will look into it.

Currently if you just run:

apm project config set

you will be stepped through all the config and provided documentation from each of the extensions requiring the setting.

marchbold avatar Aug 20 '23 04:08 marchbold

Or if you just set that particular value you will get documentation as well:

apm project config set bundleSeedId

Outputs:

# [com.distriqt.PushNotifications]: Bundle Seed Id (or App ID Prefix) for your iOS application
#         See: https://docs.airnativeextensions.com/docs/pushnotifications/apple/apple-push-notification-service
bundleSeedId= (required)
Set []:

marchbold avatar Aug 20 '23 04:08 marchbold

Maybe improve the error message this way:

generate/app-descriptor :: Parameter not valid: bundleSeedId=.
# [com.distriqt.PushNotifications]: Bundle Seed Id (or App ID Prefix) for your iOS application
#         See: https://docs.airnativeextensions.com/docs/pushnotifications/apple/apple-push-notification-service

sjabberwocky avatar Aug 20 '23 04:08 sjabberwocky