~nightshade-dev/nightshade/trunk

« back to all changes in this revision

Viewing changes to src/constellation.cpp

  • Committer: Trystan Larey-Williams
  • Date: 2011-06-01 23:25:13 UTC
  • mfrom: (128.15.20 trunk)
  • Revision ID: tlareywi@trystan.digitaliseducation-20110601232513-xpimcjm6immeonp0
local merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        nb_segments = 0;
61
61
 
62
62
        std::istringstream istr(record);
63
 
        if (!(istr >> abbreviation >> nb_segments)) return false;
 
63
        if (!(istr >> abbreviation >> nb_segments)) {
 
64
                cerr << "Error parsing constellation record:\n" << record << endl;
 
65
                return false;
 
66
        }
64
67
 
65
68
        // make short_name uppercase for case insensitive searches
66
69
        transform(abbreviation.begin(),abbreviation.end(), abbreviation.begin(), ::toupper);