Skip to content

Commit e4ce937

Browse files
committed
Fix bugs
1 parent 3557a4f commit e4ce937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

r/sparkr/R/osconfig.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ CloudObjectStorage <- setRefClass("CloudObjectStorage",
159159
SparkR:::callJMethod(hConf, "set", paste(prefix, "iam.token", sep='.'), credentials['iamToken'][[1]])
160160
}
161161

162-
if ("iamServiceEndpoint" %in% credentials {
162+
if ("iamServiceEndpoint" %in% credentials) {
163163
SparkR:::callJMethod(hConf, "set", paste(prefix, "iam.endpoint", sep='.'), credentials['iamServiceEndpoint'][[1]])
164164
}
165165

@@ -182,7 +182,7 @@ CloudObjectStorage <- setRefClass("CloudObjectStorage",
182182
# check the existence of all required values in credentials
183183
for (key in requiredKeys) {
184184
if (!key %in% credentials) {
185-
stop("Invalid input: missing required input [" + key + "]!")
185+
stop(paste("Invalid input: missing required input [", key, "]!", sep=''))
186186
}
187187
}
188188
},

0 commit comments

Comments
 (0)