mirror of
				https://github.com/easingthemes/ssh-deploy.git
				synced 2025-10-30 23:30:09 +08:00 
			
		
		
		
	better reject message
This commit is contained in:
		
							parent
							
								
									9d9498978c
								
							
						
					
					
						commit
						bc37bf088b
					
				
							
								
								
									
										12
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							| @ -64,9 +64,9 @@ jobs: | |||||||
|           SOURCE: "test_project/" |           SOURCE: "test_project/" | ||||||
|           TARGET: "/var/www/html/" |           TARGET: "/var/www/html/" | ||||||
|           EXCLUDE: "/dist/, /node_modules/" |           EXCLUDE: "/dist/, /node_modules/" | ||||||
|           SCRIPT_BEFORE: | | #          SCRIPT_BEFORE: | | ||||||
|             whoami | #            whoami | ||||||
|             ls -al | #            ls -al | ||||||
|           SCRIPT_AFTER: | | #          SCRIPT_AFTER: | | ||||||
|             whoami | #            whoami | ||||||
|             ls -al | #            ls -al | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -5,10 +5,14 @@ const nodeRsyncPromise = async (config) => new Promise((resolve, reject) => { | |||||||
|   try { |   try { | ||||||
|     nodeRsync(config, (error, stdout, stderr, cmd) => { |     nodeRsync(config, (error, stdout, stderr, cmd) => { | ||||||
|       if (error) { |       if (error) { | ||||||
|         console.log('⚠️ [Rsync] stderr: ', stderr); |         console.error('⚠️ [Rsync] error: '); | ||||||
|         console.log('⚠️ [Rsync] stdout: ', stdout); |         console.error(error); | ||||||
|         console.log('⚠️ [Rsync] cmd: ', cmd); |         console.error('⚠️ [Rsync] stderr: '); | ||||||
|         reject(error); |         console.error(stderr); | ||||||
|  |         console.error('⚠️ [Rsync] stdout: '); | ||||||
|  |         console.error(stdout); | ||||||
|  |         console.error('⚠️ [Rsync] cmd: ', cmd); | ||||||
|  |         reject(new Error(`${error.message}\n\n${stderr}`)); | ||||||
|       } else { |       } else { | ||||||
|         resolve(stdout); |         resolve(stdout); | ||||||
|       } |       } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Dragan Filipovic
						Dragan Filipovic