mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:42:44 +00:00 
			
		
		
		
	PDFViewer: Inform users of underlying issue when loading document
While this is not super useful to end users, it's still better than the simpler, generic "failed to load" error message.
This commit is contained in:
		
							parent
							
								
									b10fe7c136
								
							
						
					
					
						commit
						b406f1d5a4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -355,7 +355,8 @@ void PDFViewerWidget::open_file(Core::File& file) | |||
|     if (maybe_error.is_error()) { | ||||
|         auto error = maybe_error.release_error(); | ||||
|         warnln("{}", error.message()); | ||||
|         GUI::MessageBox::show_error(nullptr, "Failed to load the document."sv); | ||||
|         auto user_error_message = DeprecatedString::formatted("Failed to load the document. Error:\n{}.", error.message()); | ||||
|         GUI::MessageBox::show_error(nullptr, user_error_message.view()); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rodrigo Tobar
						Rodrigo Tobar