mirror of https://github.com/Chocobozzz/PeerTube
				
				
				
			Less verbose on expected error
							parent
							
								
									c10c3c5e79
								
							
						
					
					
						commit
						1a8b20ba30
					
				| 
						 | 
				
			
			@ -201,8 +201,8 @@ export class RunnerServer {
 | 
			
		|||
      } catch (err) {
 | 
			
		||||
        const code = (err.res?.body as PeerTubeProblemDocument)?.code
 | 
			
		||||
 | 
			
		||||
        if (code === ServerErrorCode.RUNNER_JOB_NOT_IN_PROCESSING_STATE) {
 | 
			
		||||
          logger.debug({ err }, 'Runner job is not in processing state anymore, retry later')
 | 
			
		||||
        if (code === ServerErrorCode.RUNNER_JOB_NOT_IN_PENDING_STATE) {
 | 
			
		||||
          logger.debug({ err }, 'Runner job is not in pending state anymore, retry later')
 | 
			
		||||
          return
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@ if [ ! -z ${2+x} ] && [ "$2" = "--ar-locale" ]; then
 | 
			
		|||
fi
 | 
			
		||||
 | 
			
		||||
clientCommand="cd client && node --max_old_space_size=4096 node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration $clientConfiguration --host 0.0.0.0 --disable-host-check --port 3000"
 | 
			
		||||
serverCommand=" NODE_ENV=dev node dist/server"
 | 
			
		||||
serverCommand="NODE_ENV=dev node dist/server"
 | 
			
		||||
 | 
			
		||||
if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then
 | 
			
		||||
  eval $clientCommand
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue