get_filename_component(var "/path/to/filename.ext.in" BOGUS) message("The error is fatal, so this should not print")