Fix error message when opening new file.

Signed-off-by: darkestkhan <darkestkhan@gmail.com>