File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
core/src/main/java/com/google/cloud/sql/core Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -133,12 +133,14 @@ class CloudSqlInstance {
133133 ListeningScheduledExecutorService executor ,
134134 ListenableFuture <KeyPair > keyPair ) {
135135
136- this .connectionName = connectionName ;
137136 Matcher matcher = CONNECTION_NAME .matcher (connectionName );
138137 checkArgument (
139138 matcher .matches (),
140- "[%s] Cloud SQL connection name is invalid, expected string in the form of"
141- + " \" <PROJECT_ID>:<REGION_ID>:<INSTANCE_ID>\" ." );
139+ String .format (
140+ "[%s] Cloud SQL connection name is invalid, expected string in the form of"
141+ + " \" <PROJECT_ID>:<REGION_ID>:<INSTANCE_ID>\" ." ,
142+ connectionName ));
143+ this .connectionName = connectionName ;
142144 this .projectId = matcher .group (1 );
143145 this .regionId = matcher .group (3 );
144146 this .instanceId = matcher .group (4 );
You can’t perform that action at this time.
0 commit comments