renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "ThreeColumnFile", "resetFile");
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "ColumnFile", "resetFile");
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "SharedThreeColumnFile", "resetFile");
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "OneColumnFile", "resetFile");
outFile.close();
}
counter = 1;
-
+
remove(inName.c_str());
+
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "SharedOneColumnFile", "resetFile");