Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Improved error message for old fs.
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove committed May 3, 2017
1 parent 09ff4aa commit 8c3ebd8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions libenkf/src/fs_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,17 @@ void fs_driver_assert_version( FILE * stream , const char * mount_point) {
if (file_version < CURRENT_FS_VERSION) {
if ((file_version == 105) && (CURRENT_FS_VERSION == 106))
fprintf(stderr,"%s: The file system you are accessing has been written with an older version of ert - STATIC information ignored. \n",__func__);
else
util_exit("%s: The file system you are trying to access has been created with an old version of ert - sorry.\n",__func__);
}
else {
fprintf(stderr,"%s: The file system you are trying to access has been created with an old version of ert - sorry.\n",__func__);
fprintf(stderr,"ert_fs_version: %d \n",CURRENT_FS_VERSION );
fprintf(stderr,"%s version: %d \n",mount_point , file_version);

if ((file_version == 106) && (CURRENT_FS_VERSION == 107))
fprintf(stderr,"The utility: ert_upgrade_fs107 can be used to upgrade storage version from 106 to 107\n");

util_exit("EXIT");
}
}

}

Expand Down

0 comments on commit 8c3ebd8

Please sign in to comment.