mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	improve error handling
This commit is contained in:
		
							parent
							
								
									c30d938034
								
							
						
					
					
						commit
						5850044599
					
				
					 6 changed files with 45 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -107,6 +107,11 @@ int main(int argc, char *argv[])
 | 
			
		|||
				PW_KEY_CORE_DAEMON, "1", NULL),
 | 
			
		||||
			0);
 | 
			
		||||
 | 
			
		||||
	if (core == NULL) {
 | 
			
		||||
		pw_log_error("failed to create core: %m");
 | 
			
		||||
		return -1;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (pw_daemon_config_run_commands(config, core) < 0) {
 | 
			
		||||
		pw_log_error("failed to run config commands");
 | 
			
		||||
		return -1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue