Make error output labels consistent
This commit is contained in:
parent
1cc2c6f4f9
commit
81c76ae9d4
|
@ -91,7 +91,8 @@ public class FiletreeController implements Initializable, Controller {
|
|||
this.eventBus.post(new OpenFileEvent(Optional.ofNullable(path)));
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
System.err.println("[ERROR]: Could not find filepath from filetree");
|
||||
System.err.println("[ERROR] Could not find filepath from filetree");
|
||||
System.err.print(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -108,7 +109,7 @@ public class FiletreeController implements Initializable, Controller {
|
|||
private void handle(OpenProjectEvent event) {
|
||||
event.getPath().ifPresentOrElse(
|
||||
path -> this.showTree(path.toString()),
|
||||
() -> System.err.println("[ERROR]: OpenProjectEvent was empty!")
|
||||
() -> System.err.println("[ERROR] OpenProjectEvent was empty")
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -89,9 +89,10 @@ public class FileOperations {
|
|||
result += (sc.nextLine() + "\n");
|
||||
}
|
||||
|
||||
} catch (FileNotFoundException ex) {
|
||||
DialogBoxes.showErrorMessage("Could not be opened!");
|
||||
System.err.println(filePath);
|
||||
} catch (FileNotFoundException e) {
|
||||
DialogBoxes.showErrorMessage("This file could not be opened!");
|
||||
System.err.println("[ERROR] File could not be opened: " + filePath.toString());
|
||||
System.err.print(e);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
@ -64,8 +64,8 @@ public class FiletreeOperations {
|
|||
parent.getChildren().add(element);
|
||||
|
||||
} catch (Exception e) {
|
||||
System.err.print(e);
|
||||
System.err.println("[ERROR]: DEFAULT FILE ICON NOT FOUND");
|
||||
System.err.println("[ERROR] Default file icon not found");
|
||||
System.err.println(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ public class FiletreeOperations {
|
|||
icon = new Image(imageData);
|
||||
|
||||
} catch (IOException e) {
|
||||
System.err.println("[WARNING]: ICON NOT FOUND: " + file.getPath());
|
||||
System.err.println("[WARNING] Icon not found: " + file.getPath());
|
||||
|
||||
// String iconPath = "/graphics/filetreeicons/file.png";
|
||||
String iconPath = "/graphics/filetreeicons/unknown.png";
|
||||
|
|
Loading…
Reference in New Issue