Merge pull request #2059 from OpenRefine/issue-1989-filenotfound
Disable error message when workspace.json does not exist.
This commit is contained in:
commit
ad9566502f
@ -363,11 +363,13 @@ public class FileProjectManager extends ProjectManager {
|
|||||||
|
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
|
||||||
try {
|
if (file.exists() || file.canRead()) {
|
||||||
ParsingUtilities.mapper.readerForUpdating(this).readValue(file);
|
try {
|
||||||
found = true;
|
ParsingUtilities.mapper.readerForUpdating(this).readValue(file);
|
||||||
} catch(IOException e) {
|
found = true;
|
||||||
logger.warn(e.toString());
|
} catch(IOException e) {
|
||||||
|
logger.warn(e.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return found;
|
return found;
|
||||||
|
Loading…
Reference in New Issue
Block a user