report client version in user agent header during update checks [ci skip]

This commit is contained in:
Sebastian Stenzel
2016-01-29 01:11:13 +01:00
parent 56fcb99248
commit 8784115c75
2 changed files with 10 additions and 2 deletions
@@ -8,6 +8,7 @@
*******************************************************************************/
package org.cryptomator.filesystem.inmem;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.time.Instant;
@@ -47,7 +48,7 @@ class InMemoryNode implements Node {
@Override
public Instant lastModified() {
if (!exists()) {
throw new UncheckedIOException(new IOException("File does not exist"));
throw new UncheckedIOException(new FileNotFoundException("File does not exist"));
}
return lastModified;
}