Skip to content

Commit 1a2e33c

Browse files
committed
provide more useful error when deploying unsupported websockets
1 parent 4d766e5 commit 1a2e33c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloud/azure/deploy/websocket.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ import (
2222
)
2323

2424
func (a *NitricAzurePulumiProvider) Websocket(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Websocket) error {
25-
return fmt.Errorf("Websockets not implemented for Azure")
25+
return fmt.Errorf("websockets aren't yet supported by Nitric on Azure, remove the web sockets from your project and try again or run `nitric down` to destroy this stack")
2626
}

cloud/gcp/deploy/websocket.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ import (
2222
)
2323

2424
func (a *NitricGcpPulumiProvider) Websocket(ctx *pulumi.Context, parent pulumi.Resource, name string, config *deploymentspb.Websocket) error {
25-
return fmt.Errorf("Websockets not implemented for GCP")
25+
return fmt.Errorf("websockets aren't yet supported by Nitric on Google Cloud, remove the web sockets from your project and try again or run `nitric down` to destroy this stack")
2626
}

0 commit comments

Comments
 (0)