We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c6212 commit 980f39aCopy full SHA for 980f39a
datahub-frontend/app/controllers/api/v1/User.java
@@ -17,7 +17,6 @@
17
import utils.ControllerUtil;
18
19
import javax.annotation.Nonnull;
20
-import java.security.InvalidParameterException;
21
import java.util.Collections;
22
import java.util.List;
23
import java.util.concurrent.TimeUnit;
@@ -49,7 +48,7 @@ public Result getLoggedInUser() {
49
48
try {
50
corpUser = _corpUserViewDao.getByUserName(username);
51
} catch (Exception e) {
52
- throw new InvalidParameterException("Invalid username: " + username);
+ throw new RuntimeException(e);
53
}
54
55
if (corpUser == null || !corpUser.getUsername().equals(username)
0 commit comments