Don't rely on %m
This commit is contained in:
		
							parent
							
								
									ccb1022022
								
							
						
					
					
						commit
						b77fb8acb5
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -5,6 +5,7 @@ | ||||||
| #include "globals.hh" | #include "globals.hh" | ||||||
| 
 | 
 | ||||||
| #include <cstdlib> | #include <cstdlib> | ||||||
|  | #include <cstring> | ||||||
| #include <sys/types.h> | #include <sys/types.h> | ||||||
| #include <sys/stat.h> | #include <sys/stat.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
|  | @ -160,7 +161,7 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path, InodeHa | ||||||
|                full.  When that happens, it's fine to ignore it: we |                full.  When that happens, it's fine to ignore it: we | ||||||
|                just effectively disable deduplication of this |                just effectively disable deduplication of this | ||||||
|                file.  */ |                file.  */ | ||||||
|             printInfo("cannot link ‘%s’ to ‘%s’: %m", linkPath, path); |             printInfo("cannot link ‘%s’ to ‘%s’: %s", linkPath, path, strerror(errno)); | ||||||
|             return; |             return; | ||||||
| 
 | 
 | ||||||
|         default: |         default: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue