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:
Mars Lan 2020-04-03 07:40:07 -07:00 committed by GitHub
parent c3c6212d4e
commit 980f39ae88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)