mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 238143
Bad use of MessageFormat.format
This commit is contained in:
parent
9d2509ab15
commit
35ce4db366
1 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,6 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.Reader;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
|
@ -547,8 +546,7 @@ public class GDBControl extends AbstractMIControl {
|
|||
try {
|
||||
fProcess = ProcessFactory.getFactory().exec(commandLine);
|
||||
} catch(IOException e) {
|
||||
String message = MessageFormat.format("Error while launching command", //$NON-NLS-1$
|
||||
new Object[]{commandList.toString()});
|
||||
String message = "Error while launching command " + commandList.toString(); //$NON-NLS-1$
|
||||
gdbLaunchRequestMonitor.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, -1, message, e));
|
||||
gdbLaunchRequestMonitor.done();
|
||||
return Status.OK_STATUS;
|
||||
|
|
Loading…
Add table
Reference in a new issue