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,12 +363,14 @@ public class FileProjectManager extends ProjectManager {
|
|||||||
|
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
|
||||||
|
if (file.exists() || file.canRead()) {
|
||||||
try {
|
try {
|
||||||
ParsingUtilities.mapper.readerForUpdating(this).readValue(file);
|
ParsingUtilities.mapper.readerForUpdating(this).readValue(file);
|
||||||
found = true;
|
found = true;
|
||||||
} catch(IOException e) {
|
} catch(IOException e) {
|
||||||
logger.warn(e.toString());
|
logger.warn(e.toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user