Malarg commented on code in PR #25397:
URL: https://github.com/apache/beam/pull/25397#discussion_r1105521513
##########
playground/frontend/playground_components/lib/src/repositories/code_client/grpc_code_client.dart:
##########
@@ -192,6 +194,11 @@ class GrpcCodeClient implements CodeClient {
try {
return await invoke();
} on GrpcError catch (error) {
+ //TODO(Malarg): check if internet connection available here using
connectivity_plus
+ //throw internet unavailable exception, if not
+ if (error.message?.contains('CORS') ?? false) {
+ throw const RunCodeError(message: kInternetConnectionUnavailable);
+ }
Review Comment:
Bug gone from chrome, changed error text
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]