flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxm <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-2797][cli] Add support for running jobs...
Date Tue, 27 Oct 2015 09:26:02 GMT
Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1214#discussion_r43098268
  
    --- Diff: flink-clients/src/main/java/org/apache/flink/client/CliFrontend.java ---
    @@ -909,7 +919,21 @@ private int handleError(Throwable t) {
     		}
     		LOG.error("Error while running the command.", t);
     
    -		t.printStackTrace();
    +		// check if the error was due to an invalid program in detached mode.
    +		if (t instanceof ProgramInvocationException && t.getCause() instanceof DetachedProgramException)
{
    +			System.err.println(t.getCause().getMessage());
    +			// now trace to the user's main method. We don't wanna show unnecessary information
    +			// in this particular case.
    --- End diff --
    
    Why in this case? Doesn't that apply to all errors that occur during interactive execution?


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