simonharrer / textools

Helpful CLI for working with tex files.
10 stars 5 forks source link

Printing an error to the console instead of the exception #7

Closed philippneugebauer closed 10 years ago

philippneugebauer commented 10 years ago
java.lang.IllegalStateException: could not delete main.pdf
    at textools.tasks.FileSystemTasks.deleteFile(FileSystemTasks.java:36)
    at textools.commands.Clean.execute(Clean.java:51)
    at textools.Main.main(Main.java:37)
Caused by: java.nio.file.FileSystemException: .\.\main.pdf: Der Prozess kann nicht 
auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
    at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
    at java.nio.file.Files.delete(Files.java:1123)
    at textools.tasks.FileSystemTasks.deleteFile(FileSystemTasks.java:34)
    ... 2 more