mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Divelogs.de upload: report error when unable to open upload file
Silently failing is not cool. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									622fb4f800
								
							
						
					
					
						commit
						3b033a85ac
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -695,6 +695,8 @@ void DivelogsDeWebServices::prepareDivesForUpload(bool selected)
 | 
			
		|||
			f.close();
 | 
			
		||||
			f.remove();
 | 
			
		||||
			return;
 | 
			
		||||
		} else {
 | 
			
		||||
			report_error("Failed to open upload file %s\n", qPrintable(filename));
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		report_error("Failed to create upload file %s\n", qPrintable(filename));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue