gifted-solstice-53259
03/04/2023, 3:07 AMerr
Now my question is how do I handle errors here. Lets say the func returns an error, how do I handle that outside, seems like all that gets returned by pulumi.All is connectionString
Which would be empty because the func inside errored. Any help would be appreciated
connectionString := pulumi.All(sqlServer.Name, database.Name).ApplyT(
func (args []interface{}) (string, error) {
server := args[0].(string)
db := args[1].(string)
return "", errors.New("Some error")
},
)