mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	fix error message when a peertube object is reject for bad ID / URL
This commit is contained in:
		
							parent
							
								
									2d7918a9b7
								
							
						
					
					
						commit
						f183df3044
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -26,6 +26,6 @@ export function assertActivityMatchesUrls(activity: IObject, urls: string[]) {
 | 
				
			||||||
		.map(u => new URL(u as string).href);
 | 
							.map(u => new URL(u as string).href);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!actualUrls.some(u => expectedUrls.has(u))) {
 | 
						if (!actualUrls.some(u => expectedUrls.has(u))) {
 | 
				
			||||||
		throw new UnrecoverableError(`bad Activity: neither id(${activity.id}) nor url(${JSON.stringify(activity.url)}) match location(${urls})`);
 | 
							throw new UnrecoverableError(`bad Activity: neither id nor url (${actualUrls.join(', ')}) match location (${urls.join(', ')})`);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue