hivemall-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From takuti <...@git.apache.org>
Subject [GitHub] incubator-hivemall pull request #97: [HIVEMALL-130] Support user-defined dic...
Date Tue, 11 Jul 2017 08:14:00 GMT
Github user takuti commented on a diff in the pull request:

    https://github.com/apache/incubator-hivemall/pull/97#discussion_r126622639
  
    --- Diff: nlp/src/main/java/hivemall/nlp/tokenizer/KuromojiUDF.java ---
    @@ -239,6 +239,16 @@ private static UserDictionary userDictionary(@Nullable final String
userDictURL)
             conn.setConnectTimeout(CONNECT_TIMEOUT_MS); // throw exception from connect()
             conn.setReadTimeout(READ_TIMEOUT_MS); // throw exception from getXXX() methods
     
    +        final int responseCode;
    +        try {
    +            responseCode = conn.getResponseCode();
    +        } catch (Throwable e) {
    +            throw new UDFArgumentException("Failed to get response code: " + e);
    +        }
    +        if (responseCode != 200) {
    +            throw new UDFArgumentException("God invalid response code: " + responseCode);
    --- End diff --
    
    OMG, it's typo lol


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message