[
https://issues.apache.org/jira/browse/PIG-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096219#comment-13096219
]
Daniel Dai commented on PIG-2263:
---------------------------------
The root cause of this issue is the exception chain is broken due to
RecognitionException. RecognitionException(antlr class) does not propagate its
cause. We only print the message of its cause but no further detail. We can fix
it by put more details in the message.
> Different error messages in grunt mode and file mode
> ----------------------------------------------------
>
> Key: PIG-2263
> URL: https://issues.apache.org/jira/browse/PIG-2263
> Project: Pig
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.9.0
> Reporter: Ashutosh Chauhan
>
> Since in grunt parsing happens statement by statement and in file, whole of
> the script is considered, its possible to have different error messages.
> Problem here is that in file mode, most important error message is gobbled up
> and is not printed either on stdout/stderr or in logfile. In 0.8 it was
> correctly getting printed at stderr.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira