vm/image.cpp: Better error for opening a file for writing.

db4
Doug Coleman 2014-07-03 22:32:45 -07:00
parent c0b7fb6a23
commit bc54927859
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ bool factor_vm::save_image(const vm_char* saving_filename,
file = OPEN_WRITE(saving_filename);
if (file == NULL) {
std::cout << "Cannot open image file: " << saving_filename << std::endl;
std::cout << "Cannot open image file for writing: " << saving_filename << std::endl;
std::cout << strerror(errno) << std::endl;
return false;
}