Skip to content

Commit 05e54fe

Browse files
authored
Update HiveClientImpl.scala
Modify exception
1 parent 2609c9c commit 05e54fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private[hive] class HiveClientImpl(
197197
val ugi = HiveUtils.getUGI
198198
ugi.getShortUserName
199199
} catch {
200-
case e: LoginException => throw new IOException(e)
200+
case _: LoginException => throw new IOException("Can not get login user.")
201201
}
202202

203203
override def getConf(key: String, defaultValue: String): String = {

0 commit comments

Comments
 (0)