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;
|
||||
|
||||
try {
|
||||
ParsingUtilities.mapper.readerForUpdating(this).readValue(file);
|
||||
found = true;
|
||||
} catch(IOException e) {
|
||||
logger.warn(e.toString());
|
||||
if (file.exists() || file.canRead()) {
|
||||
try {
|
||||
ParsingUtilities.mapper.readerForUpdating(this).readValue(file);
|
||||
found = true;
|
||||
} catch(IOException e) {
|
||||
logger.warn(e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
return found;
|
||||
|
Loading…
Reference in New Issue
Block a user