Ignore:
Timestamp:
27.08.2014 15:10:49 (6 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Made error message when enum string for a C++ type cannot be found more helpful

File:
1 edited

Legend:

Unmodified
Added
Removed
  • enum_strings_builder/enum_strings.cpp

    r446 r622  
    127127  { 
    128128    std::stringstream message; 
    129     message << "Could not find type_id: '" << demangled.c_str() << "'\nCandidates are:\n\n"; 
     129    message << "Could not find enum strings for type_id: '" << demangled.c_str() << "'\nCandidates are:\n\n"; 
    130130    for (auto it = EnumStringsRegister().begin(); it != EnumStringsRegister().end(); ++it) 
    131131    { 
    132132      message << "\t" << it->first.c_str() << "\n"; 
    133133    } 
     134 
     135    message << "\nPlease note that enum strings are only generated for public enums in .h files.\n"; 
    134136    throw std::runtime_error(message.str()); 
    135137  } 
Note: See TracChangeset for help on using the changeset viewer.