mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Importing newer configuration data: Fixed compiler warning,
improved error reporting when deleting old cache and vendors directory.
This commit is contained in:
		
							parent
							
								
									13566e3f93
								
							
						
					
					
						commit
						93c4b941b5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -221,12 +221,12 @@ void PresetBundle::import_newer_configs(const std::string& from) | |||
|     try { | ||||
|         boost::filesystem::remove_all(data_dir / "cache"); | ||||
|     } catch (const std::exception &ex) { | ||||
|         BOOST_LOG_TRIVIAL(error) << "Error deleting old cache " << (data_dir / "cache").string(); | ||||
|         BOOST_LOG_TRIVIAL(error) << "Error deleting old cache " << (data_dir / "cache").string() << ": " << ex.what(); | ||||
|     } | ||||
|     try { | ||||
|         boost::filesystem::remove_all(data_dir / "vendor"); | ||||
|     } catch (const std::exception &ex) { | ||||
|         BOOST_LOG_TRIVIAL(error) << "Error deleting old vendors " << (data_dir / "vendor").string(); | ||||
|         BOOST_LOG_TRIVIAL(error) << "Error deleting old vendors " << (data_dir / "vendor").string() << ": " << ex.what(); | ||||
|     } | ||||
|     // list of searched paths based on current directory system in setup_directories()
 | ||||
|     // do not copy cache and snapshots
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vojtech Bubnik
						Vojtech Bubnik