File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
io.sloeber.core/src/io/sloeber/core/tools Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,21 @@ public TxtFile(File boardsFileName, boolean workAround) {
62
62
63
63
this .mLastLoadedTxtFile =boardsFileName ;
64
64
File actuallyLoadedTxtFile = mLastLoadedTxtFile ;
65
+ // If the file doesn't exist ignore it.
66
+ if (!boardsFileName .exists ()) {
67
+ return ;
68
+ }
69
+
65
70
if (workAround ) {
66
71
actuallyLoadedTxtFile =WorkAround .MakeBoardsSloeberTxt (boardsFileName );
67
72
}
68
- // If the file doesn't exist ignore it.
69
- if (!actuallyLoadedTxtFile .exists ())
73
+
74
+ if (!actuallyLoadedTxtFile .exists ()) {
75
+ Common .log (new Status (IStatus .ERROR , Const .CORE_PLUGIN_ID ,
76
+ "TXT worked around file " +actuallyLoadedTxtFile .getName () + " does not exist." )); //$NON-NLS-1$ //$NON-NLS-2$
70
77
return ;
78
+ }
79
+
71
80
72
81
this .fileContent .clear ();
73
82
You can’t perform that action at this time.
0 commit comments