You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2016/02/16 22:07:18 UTC
[jira] [Updated] (SYSTEMML-523) If function param not recognized,
output useful info in error message
[ https://issues.apache.org/jira/browse/SYSTEMML-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deron Eriksson updated SYSTEMML-523:
------------------------------------
Summary: If function param not recognized, output useful info in error message (was: If function parameter not recognized, output param name in error message)
> If function param not recognized, output useful info in error message
> ---------------------------------------------------------------------
>
> Key: SYSTEMML-523
> URL: https://issues.apache.org/jira/browse/SYSTEMML-523
> Project: SystemML
> Issue Type: Task
> Components: APIs, Parser
> Reporter: Deron Eriksson
>
> If a function parameter name is not recognized, the name of the parameter should be output in the error message so the parsing problem can more easily be diagnosed.
> For example, consider the following example, which has the "badparam" parameter.
> {code}
> b = read("m.csv", badparam="oops");
> {code}
> This DML results in the following parsing error:
> {code}
> org.apache.sysml.api.DMLException: org.apache.sysml.parser.ParseException: One or more errors found during parsing (could not construct AST for file: hello.dml). Cannot proceed ahead.
> at org.apache.sysml.api.DMLScript.executeScript(DMLScript.java:358)
> at org.apache.sysml.api.DMLScript.main(DMLScript.java:198)
> Caused by: org.apache.sysml.parser.ParseException: One or more errors found during parsing (could not construct AST for file: hello.dml). Cannot proceed ahead.
> at org.apache.sysml.parser.dml.DMLParserWrapper.parse(DMLParserWrapper.java:147)
> at org.apache.sysml.api.DMLScript.execute(DMLScript.java:594)
> at org.apache.sysml.api.DMLScript.executeScript(DMLScript.java:346)
> ... 1 more
> {code}
> It would be very helpful in terms of diagnosing the problem if the line number of the problem, the function name, and the unrecognized parameter name were output in the error message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)