Commit 67fffc30 authored by Peter Giroux's avatar Peter Giroux Committed by Jesse Mapel
Browse files

added error for level 2 input cube

parent 9eed2514
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -63,6 +63,12 @@ void IsisMain() {
  Process p;
  Cube *incube = p.SetInputCube("FROM");

  if (incube->hasGroup("Mapping")) {
    QString msg = "Caminfo expects a level 1 input cube. For more information, see:\n"
    "https://isis.astrogeology.usgs.gov/documents/Glossary/Glossary.html#Level1";
    throw IException(IException::Unknown, msg, _FILEINFO_);
  }

  // General data gathering
  general = new QList< QPair<QString, QString> >;
  general->append(MakePair("Program",     caminfo_program));