Skip to content

Commit 980f39a

Browse files
authored
refactor(frontend): fails loudly to help debug gms issue (datahub-project#1626)
This will print the full stacktrace in log to help identify various gms issues
1 parent c3c6212 commit 980f39a

File tree

1 file changed

+1
-2
lines changed
  • datahub-frontend/app/controllers/api/v1

1 file changed

+1
-2
lines changed

datahub-frontend/app/controllers/api/v1/User.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import utils.ControllerUtil;
1818

1919
import javax.annotation.Nonnull;
20-
import java.security.InvalidParameterException;
2120
import java.util.Collections;
2221
import java.util.List;
2322
import java.util.concurrent.TimeUnit;
@@ -49,7 +48,7 @@ public Result getLoggedInUser() {
4948
try {
5049
corpUser = _corpUserViewDao.getByUserName(username);
5150
} catch (Exception e) {
52-
throw new InvalidParameterException("Invalid username: " + username);
51+
throw new RuntimeException(e);
5352
}
5453

5554
if (corpUser == null || !corpUser.getUsername().equals(username)

0 commit comments

Comments
 (0)