Unverified Commit 624f929d authored by Christopher Ryan Combs Jr's avatar Christopher Ryan Combs Jr Committed by GitHub
Browse files

Merge pull request #6 from SgStapleton/m05145

Updated error message is Cube::create() to address when IsisPreferences cannot be found. #5145
parents 74c18d47 9f852952
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -369,9 +369,10 @@ namespace Isis {
               "dimensions were (S,L,B) [" + toString(m_samples) + ", " +
               toString(m_lines) + ", " + toString(m_bands) + "] with [" +
               toString(SizeOf(m_pixelType)) + "] bytes per pixel. If you still "
               "wish to create this cube, the maximum value can be changed in the"
               " file [~/.Isis/IsisPreferences] within the group "
               "CubeCustomization, keyword MaximumSize.";
               "wish to create this cube, the maximum value can be changed in your personal "
               "preference file located in [~/.Isis/IsisPreferences] within the group "
               "CubeCustomization, keyword MaximumSize. If you do not have an ISISPreference file, "
               "please refer to the documentation \"Environment and Preference Setup\". Error ";
        throw IException(IException::User, msg, _FILEINFO_);
      }
    }
+2 −0
Original line number Diff line number Diff line
@@ -157,6 +157,8 @@ namespace Isis {
   *   @history 2017-06-08 Chris Combs - Made "Failed to create" error messages more descriptive.
   *                           Fixes #833.
   *   @history 2017-09-22 Cole Neubauer - Fixed documentation. References #4807
   *   @history 2018-01-18 Summer Stapleton - Updated error message in ::create() to address when
   *                           an IsisPreference file cannot be found. Fixes #5145.
   */
  class Cube {
    public:
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ Testing errors ...
**PROGRAMMER ERROR** Tried to write to a cube before opening/creating it.
**PROGRAMMER ERROR** Number of samples [0], lines [0], or bands [0] cannot be less than 1.
**I/O ERROR** Label space is full in [IsisCube_04.cub] unable to write labels.
**USER ERROR** The cube you are attempting to create [IsisCube_05] is [33527GB]. This is larger than the current allowed size of [12GB]. The cube dimensions were (S,L,B) [1000000, 1000000, 9] with [4] bytes per pixel. If you still wish to create this cube, the maximum value can be changed in the file [~/.Isis/IsisPreferences] within the group CubeCustomization, keyword MaximumSize.
**USER ERROR** The cube you are attempting to create [IsisCube_05] is [33527GB]. This is larger than the current allowed size of [12GB]. The cube dimensions were (S,L,B) [1000000, 1000000, 9] with [4] bytes per pixel. If you still wish to create this cube, the maximum value can be changed in your personal preference file located in [~/.Isis/IsisPreferences] within the group CubeCustomization, keyword MaximumSize. If you do not have an ISISPreference file, please refer to the documentation "Environment and Preference Setup". Error.
**PROGRAMMER ERROR** Unknown value for access [a]. Expected 'r'  or 'rw'.
**PROGRAMMER ERROR** SetDimensions:  Invalid number of sample, lines or bands.
**PROGRAMMER ERROR** SetDimensions:  Invalid number of sample, lines or bands.