pulumi/pkg/util
Ian Wahbe ea7c3e4d5d Improve the stack validation error message
Previously, the error message was:

```
error: a stack name may only contain alphanumeric, hyphens, underscores, or periods
```

This wasn't great because it lacked specificity, but was especially bad if candidate stack
name was >100 characters or empty.

The new error messages are as follows:

1. If empty: "a stack name may not be empty"
2. If >100 chars: "a stack name cannot exceed 100 characters"
3. If it contains invalid characters: "a stack name may only contain alphanumeric,
   hyphens, underscores, or periods: invalid character %q at position %d" (with the
   appropriate values filled in).

Add tests

Add changelog

Fix lint

Respond to feedback
2023-06-28 00:48:19 +02:00
..
afero Fix convert pcl copy 2023-04-14 22:04:50 +01:00
cancel all: Assert => Assertf 2023-03-03 14:37:43 -08:00
rpcdebug Fix PULUMI_DEBUG_GPRC to intercept client errors 2023-05-19 16:52:51 -07:00
testutil all: Drop ioutil 2023-01-06 16:35:14 -08:00
tracing Update error handling (#8406) 2021-11-12 18:37:17 -08:00
validation Improve the stack validation error message 2023-06-28 00:48:19 +02:00
plugin.go Hardcode some known provider plugin locations 2023-05-24 17:41:12 +01:00
plugin_test.go Hardcode some known provider plugin locations 2023-05-24 17:41:12 +01:00