mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-18 06:06:55 +00:00
refactor(frontend): fails loudly to help debug gms issue (#1626)
This will print the full stacktrace in log to help identify various gms issues
This commit is contained in:
parent
c3c6212d4e
commit
980f39ae88
@ -17,7 +17,6 @@ import play.mvc.Security;
|
||||
import utils.ControllerUtil;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.security.InvalidParameterException;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
@ -49,7 +48,7 @@ public class User extends Controller {
|
||||
try {
|
||||
corpUser = _corpUserViewDao.getByUserName(username);
|
||||
} catch (Exception e) {
|
||||
throw new InvalidParameterException("Invalid username: " + username);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
if (corpUser == null || !corpUser.getUsername().equals(username)
|
||||
|
Loading…
x
Reference in New Issue
Block a user