Index: /issm/trunk/src/m/solutions/dakota/qmu.m
===================================================================
--- /issm/trunk/src/m/solutions/dakota/qmu.m	(revision 452)
+++ /issm/trunk/src/m/solutions/dakota/qmu.m	(revision 453)
@@ -121,16 +121,21 @@
 
 %  check to see if dakota returned errors in the err file
-fide=fopen([qmufile '.err'],'r');
-fline=fgetl(fide);
-if ischar(fline)
-    while ischar(fline)
-        disp(sprintf('%s',fline));
-        fline=fgetl(fide);
+if exist([qmufile '.err'],'file')
+   fide=fopen([qmufile '.err'],'r');
+   fline=fgetl(fide);
+   if ischar(fline)
+       while ischar(fline)
+           disp(sprintf('%s',fline));
+           fline=fgetl(fide);
+       end
+       status=fclose(fide);
+       cd ../
+       error(['Dakota returned error in ''' qmufile '.err'' file.  ''' qmudir ''' directory retained.'])
     end
     status=fclose(fide);
-    cd ../
-    error(['Dakota returned error in ''' qmufile '.err'' file.  ''' qmudir ''' directory retained.'])
+else
+   cd ../
+   error(['Dakota did not generate ''' qmufile '.err'' file.  ''' qmudir ''' directory retained.'])
 end
-status=fclose(fide);
 
 %parse inputs and results from dakota
