Improve "Try etiquette_cli init" message.
This commit is contained in:
		
							parent
							
								
									d26112bd21
								
							
						
					
					
						commit
						c3ec4f06a3
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -779,7 +779,7 @@ def main(argv): | ||||||
|         ) |         ) | ||||||
|     except etiquette.exceptions.NoClosestPhotoDB as exc: |     except etiquette.exceptions.NoClosestPhotoDB as exc: | ||||||
|         pipeable.stderr(exc.error_message) |         pipeable.stderr(exc.error_message) | ||||||
|         pipeable.stderr('Try etiquette_cli init') |         pipeable.stderr('Try `etiquette_cli.py init` to create the database.') | ||||||
|         return 1 |         return 1 | ||||||
| 
 | 
 | ||||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||||
|  |  | ||||||
|  | @ -60,7 +60,7 @@ def etiquette_flask_launch( | ||||||
|         backend.common.init_photodb(log_level=LOG_LEVEL) |         backend.common.init_photodb(log_level=LOG_LEVEL) | ||||||
|     except etiquette.exceptions.NoClosestPhotoDB as exc: |     except etiquette.exceptions.NoClosestPhotoDB as exc: | ||||||
|         pipeable.stderr(exc.error_message) |         pipeable.stderr(exc.error_message) | ||||||
|         pipeable.stderr('Try etiquette_cli init') |         pipeable.stderr('Try `etiquette_cli.py init` to create the database.') | ||||||
|         return 1 |         return 1 | ||||||
| 
 | 
 | ||||||
|     message = f'Starting server on port {port}, pid={os.getpid()}' |     message = f'Starting server on port {port}, pid={os.getpid()}' | ||||||
|  |  | ||||||
|  | @ -44,7 +44,7 @@ def erepl_argparse(args): | ||||||
|         P = etiquette.photodb.PhotoDB.closest_photodb(log_level=LOG_LEVEL) |         P = etiquette.photodb.PhotoDB.closest_photodb(log_level=LOG_LEVEL) | ||||||
|     except etiquette.exceptions.NoClosestPhotoDB as exc: |     except etiquette.exceptions.NoClosestPhotoDB as exc: | ||||||
|         pipeable.stderr(exc.error_message) |         pipeable.stderr(exc.error_message) | ||||||
|         pipeable.stderr('Try etiquette_cli init') |         pipeable.stderr('Try `etiquette_cli.py init` to create the database.') | ||||||
|         return 1 |         return 1 | ||||||
| 
 | 
 | ||||||
|     if args.exec_statement: |     if args.exec_statement: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue