mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Include source name in update error log (closes #3482)
This commit is contained in:
		| @@ -330,7 +330,7 @@ class LibraryUpdateService( | ||||
|      * @return a pair of the inserted and removed chapters. | ||||
|      */ | ||||
|     fun updateManga(manga: Manga): Observable<Pair<List<Chapter>, List<Chapter>>> { | ||||
|         val source = sourceManager.get(manga.source) ?: return Observable.empty() | ||||
|         val source = sourceManager.getOrStub(manga.source) | ||||
|  | ||||
|         // Update manga details metadata in the background | ||||
|         if (preferences.autoUpdateMetadata()) { | ||||
| @@ -429,7 +429,8 @@ class LibraryUpdateService( | ||||
|  | ||||
|                 destFile.bufferedWriter().use { out -> | ||||
|                     errors.forEach { (manga, error) -> | ||||
|                         out.write("${manga.title}: $error\n") | ||||
|                         val source = sourceManager.getOrStub(manga.source) | ||||
|                         out.write("${manga.title} ($source): $error\n") | ||||
|                     } | ||||
|                 } | ||||
|                 return destFile | ||||
|   | ||||
		Reference in New Issue
	
	Block a user