Check for return value of specify_file/buffer and return on failure.