mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-19 22:44:32 +00:00
report client version in user agent header during update checks [ci skip]
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user