mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Improve error for missing dependency
This commit is contained in:
		
							parent
							
								
									6898b35028
								
							
						
					
					
						commit
						b2302c0a1c
					
				|  | @ -59,8 +59,9 @@ def project_run( | ||||||
|         for dep in cmd.get("deps", []): |         for dep in cmd.get("deps", []): | ||||||
|             if not (project_dir / dep).exists(): |             if not (project_dir / dep).exists(): | ||||||
|                 err = f"Missing dependency specified by command '{subcommand}': {dep}" |                 err = f"Missing dependency specified by command '{subcommand}': {dep}" | ||||||
|  |                 err_help = "Maybe you forgot to run the 'project assets' command?" | ||||||
|                 err_kwargs = {"exits": 1} if not dry else {} |                 err_kwargs = {"exits": 1} if not dry else {} | ||||||
|                 msg.fail(err, **err_kwargs) |                 msg.fail(err, err_help, **err_kwargs) | ||||||
|         with working_dir(project_dir) as current_dir: |         with working_dir(project_dir) as current_dir: | ||||||
|             rerun = check_rerun(current_dir, cmd) |             rerun = check_rerun(current_dir, cmd) | ||||||
|             if not rerun and not force: |             if not rerun and not force: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user