Skip to content

Commit e6dc697

Browse files
committed
fix log message
1 parent 2844e45 commit e6dc697

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,9 @@ public boolean isClosed() {
946946

947947
private void checkClosed() {
948948
if (isClosed()) {
949-
LOG.severe("This " + getClass().getName() + " has been closed");
950-
throw new IllegalStateException("This " + getClass().getName() + " has been closed");
949+
LOG.severe("This %s has been closed", getClass().getName());
950+
throw new IllegalStateException(
951+
String.format("This %s has been closed", getClass().getName()));
951952
}
952953
}
953954

@@ -994,8 +995,6 @@ void removeStatement(Statement statement) {
994995
}
995996

996997
private BigQuery getBigQueryConnection() {
997-
// 404 Not Found - check if the project exists
998-
// 403 Forbidden - execute a dryRun to check if the user has bigquery.jobs.create permissions
999998
BigQueryOptions.Builder bigQueryOptions = BigQueryOptions.newBuilder();
1000999
if (this.retryTimeoutInSeconds > 0L
10011000
|| (this.retryInitialDelayInSeconds > 0L && this.retryMaxDelayInSeconds > 0L)) {

0 commit comments

Comments
 (0)