dbeaver/pro#8635 added message description (#4220)

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
Dmitrii Barnukov
2026-03-23 16:42:49 +01:00
committed by GitHub
co-authored by Evgenia
parent 45a63f70ee
commit 3ae74763ff
@@ -35,6 +35,7 @@ import org.jkiss.dbeaver.runtime.DBWorkbench;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.text.MessageFormat;
import java.util.Arrays;
@@ -213,6 +214,8 @@ public class WebServiceFS implements DBWServiceFS {
oldParentNode.removeChildResource(oldNode.getPath());
parentNode.addChildResource(to);
return new FSFile(parentNode.getChild(to));
} catch (NoSuchFileException e) {
throw new DBWebException("File not found. Please refresh the catalog and check if file exists.");
} catch (Exception e) {
throw new DBWebException("Failed to move file: " + e.getMessage(), e);
}