!3540 [MD]fix error message when file exists.

Merge pull request !3540 from liyong126/fix_mindrecord_log
pull/3540/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 0975df3093

@ -83,7 +83,7 @@ MSRStatus ShardWriter::OpenDataFiles(bool append) {
// if not append and mindrecord file exist, return FAILED
fs->open(common::SafeCStr(file), std::ios::in | std::ios::binary);
if (fs->good()) {
MS_LOG(ERROR) << "MindRecord file already existed.";
MS_LOG(ERROR) << "MindRecord file already existed, please delete file: " << common::SafeCStr(file);
fs->close();
return FAILED;
}

@ -1082,7 +1082,7 @@ class Dataset:
- None
- Not support
* - DE_FLOAT16
- float32
- Not support
-
* - DE_FLOAT32
- float32

Loading…
Cancel
Save