Changeset 146:c2df5a01a0b9 in finroc_plugins_runtime_construction


Ignore:
Timestamp:
18.09.2020 07:16:47 (2 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Makes handling of invalid URIs in structure XML files more robust

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tFinstructable.cpp

    r142 r146  
    715715              if (!source_port) 
    716716              { 
    717                 FINROC_LOG_PRINT(WARNING, "Cannot create connector because port is not available: ", source_uri_parsed.scheme.length() == 0 ? source_uri_parsed.path : destination_uri_parsed.path); 
     717                std::stringstream message; 
     718                message << "Cannot create connector because port is not available: " << (source_uri_parsed.scheme.length() == 0 ? source_uri_parsed.path : destination_uri_parsed.path); 
     719                throw std::runtime_error(message.str()); 
    718720              } 
    719721              const core::tURI& scheme_uri = source_uri_parsed.scheme.length() != 0 ? source_uri : destination_uri; 
Note: See TracChangeset for help on using the changeset viewer.