@ -137,7 +137,7 @@ export default class SharedPhotoView extends Vue { 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          / /   t h i s   m i g h t   b e   w r o n g   s i n c e   " n a m e "   g o e s   w i t h   p a r a m s ,   b u t   i t   w o r k s   s o   t e s t   w e l l   w h e n   y o u   c h a n g e   i t  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          query :  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            destinationPathAfter :  "/" ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            hideBackButton :  true ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            hideBackButton :  "true" ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            imageUrl :  url ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            recipientDid :  this . activeDid ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          } ,  
				
			 
			
		
	
	
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
				
				 
				
					@ -221,13 +221,62 @@ export default class SharedPhotoView extends Vue { 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      this . uploading  =  false ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					    }  catch  ( error )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      logger . error ( "Error uploading the image" ,  error ) ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      / /   L o g   t h e   r a w   e r r o r   f i r s t  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      logger . error ( "Raw error object:" ,  JSON . stringify ( error ,  null ,  2 ) ) ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					       
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      let  errorMessage  =  "There was an error saving the picture." ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					       
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      if  ( axios . isAxiosError ( error ) )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        const  status  =  error . response ? . status ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        const  statusText  =  error . response ? . statusText ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        const  data  =  error . response ? . data ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					         
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        / /   L o g   d e t a i l e d   e r r o r   i n f o r m a t i o n  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        logger . error ( "Upload error details:" ,  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          status ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          statusText ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          data :  JSON . stringify ( data ,  null ,  2 ) ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          message :  error . message ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          config :  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            url :  error . config ? . url ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            method :  error . config ? . method ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					            headers :  error . config ? . headers  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          }  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        } ) ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					         
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        if  ( status  ===  401 )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          errorMessage  =  "Authentication failed. Please try logging in again." ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        }  else  if  ( status  ===  413 )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          errorMessage  =  "Image file is too large. Please try a smaller image." ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        }  else  if  ( status  ===  415 )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          errorMessage  =  "Unsupported image format. Please try a different image." ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        }  else  if  ( status  &&  status  >=  500 )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          errorMessage  =  "Server error. Please try again later." ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        }  else  if  ( data ? . message )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          errorMessage  =  data . message ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        }  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      }  else  if  ( error  instanceof  Error )  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        / /   L o g   n o n - A x i o s   e r r o r   w i t h   f u l l   d e t a i l s  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        logger . error ( "Non-Axios error details:" ,  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          name :  error . name ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          message :  error . message ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          stack :  error . stack ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          error :  JSON . stringify ( error ,  Object . getOwnPropertyNames ( error ) ,  2 )  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        } ) ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      }  else  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        / /   L o g   a n y   o t h e r   t y p e   o f   e r r o r  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        logger . error ( "Unknown error type:" ,  {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          error :  JSON . stringify ( error ,  null ,  2 ) ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          type :  typeof  error  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        } ) ;  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      }  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					       
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      this . $notify (  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        {  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          group :  "alert" ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          type :  "danger" ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          title :  "Error" ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          text :  "There was an error saving the picture." ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					          text :  errorMessage ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        } ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					        5000 ,  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				
					      ) ;