mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Improved error message on failed module load
This commit is contained in:
		
							parent
							
								
									b380af9d6d
								
							
						
					
					
						commit
						f2f3e2cb19
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -238,7 +238,7 @@ int main(int argc, char **argv) | ||||||
| 		case 'm': | 		case 'm': | ||||||
| 			loaded_modules.push_back(dlopen(optarg, RTLD_LAZY|RTLD_GLOBAL)); | 			loaded_modules.push_back(dlopen(optarg, RTLD_LAZY|RTLD_GLOBAL)); | ||||||
| 			if (loaded_modules.back() == NULL) { | 			if (loaded_modules.back() == NULL) { | ||||||
| 				fprintf(stderr, "Can't load module `%s'!\n", optarg); | 				fprintf(stderr, "Can't load module `%s': %s\n", optarg, dlerror()); | ||||||
| 				exit(1); | 				exit(1); | ||||||
| 			} | 			} | ||||||
| 			break; | 			break; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue