Fix #1065238: import-view should log error on invalid file, by jfall. Signed-off-by: Andrea Pescetti <andrea@nuvole.org>