From 074f9194dc5c4ad4987f7ec6f956c7da7d80702c Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Sun, 11 Nov 2012 23:43:38 +0100 Subject: Prefix an abnormal CLI command termination with 'fatal:' Change-Id: I3d257666c6fbed7b238c575808f73ec518e811b9 Signed-off-by: Chris Aniszczyk --- org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.pgm.test/src/org') diff --git a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java index 78e752d44e..982aa95216 100644 --- a/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java +++ b/org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/pgm/CLIGitCommand.java @@ -43,6 +43,7 @@ package org.eclipse.jgit.pgm; import java.io.ByteArrayOutputStream; +import java.text.MessageFormat; import java.util.ArrayList; import java.util.List; @@ -91,7 +92,8 @@ public class CLIGitCommand { cmd.execute(bean.getArguments().toArray( new String[bean.getArguments().size()])); } catch (Die e) { - return IO.readLines(e.getMessage()); + return IO.readLines(MessageFormat.format(CLIText.get().fatalError, + e.getMessage())); } finally { if (cmd.outw != null) cmd.outw.flush(); -- cgit v1.2.3