Subject: bug#16062: 24.3; Missing .png file gives poor error message when opened

From: Eli Zaretskii <[email-masked]>
Date: Fri, 06 Dec 2013 09:18:44 +0200

> From: Alex Willisson <[email-masked]>
> Date: Thu, 5 Dec 2013 16:27:35 -0500
> 
> When I try to open a .png file which does not exist, I get the error
> message "Cannot display image: (Cannot determine image type)" in the
> minibuffer, instead of something more related to "File does not exist"
> 
> Steps for reproduction:
> 
> $ emacs -Q
> 
> C-x C-f not_an_actual_file.png <return>

How should Emacs know whether you intend to visit an existing file or
create a new one?