Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/275#discussion_r134117416
  
    --- Diff: 
jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ActionSPARQL.java
 ---
    @@ -205,7 +206,11 @@ public static void parse(HttpAction action, StreamRDF 
dest, InputStream input, L
                     .lang(lang)
                     .base(base)
                     .parse(dest);
    -        } 
    +        } catch (RuntimeIOException ex) {
    +            if ( ex.getCause() instanceof CharacterCodingException )
    +                throw new RiotException("Character Coding Error: 
"+ex.getMessage());
    --- End diff --
    
    maybe `throw new RiotException("Character Coding Error: "+ex.getMessage(), 
ex.getCause());`  to keep more context?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to