Skip to content

Commit 8472a6b

Browse files
committed
Slightly reorganized reports from 'Copy error' button
1 parent 9a17386 commit 8472a6b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/src/processing/app/EditorStatus.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,16 @@ public void keyTyped(KeyEvent event) {
457457
copyErrorButton.setVisible(false);
458458
copyErrorButton.addActionListener(new ActionListener() {
459459
public void actionPerformed(ActionEvent e) {
460-
String message="";
460+
String message = "";
461+
message += _("Arduino: ") + Base.VERSION_NAME + " (" + System.getProperty("os.name") + "), ";
462+
message += _("Board: ") + "\"" + Base.getBoardPreferences().get("name") + "\"\n\n";
463+
message += editor.console.consoleTextPane.getText().trim();
461464
if ((Preferences.getBoolean("build.verbose")) == false) {
462-
message = " " + _("This report would have more information with") + "\n";
465+
message += "\n\n";
466+
message += " " + _("This report would have more information with") + "\n";
463467
message += " \"" + _("Show verbose output during compilation") + "\"\n";
464468
message += " " + _("enabled in File > Preferences.") + "\n";
465469
}
466-
message += _("Arduino: ") + Base.VERSION_NAME + " (" + System.getProperty("os.name") + "), ";
467-
message += _("Board: ") + "\"" + Base.getBoardPreferences().get("name") + "\"\n";
468-
message += editor.console.consoleTextPane.getText().trim();
469470
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
470471
StringSelection data = new StringSelection(message);
471472
clipboard.setContents(data, null);

0 commit comments

Comments
 (0)