Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions form/form/form_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "form_writer.hpp"

#include <iostream>
#include <stdexcept>
#include <typeinfo>

Expand Down Expand Up @@ -29,7 +30,8 @@ namespace form::experimental {

auto it = m_product_to_config.find(pb.label);
if (it == m_product_to_config.end()) {
throw std::runtime_error("No configuration found for product: " + pb.label);
std::cerr << "No configuration found for product: " << pb.label << '\n';
return;
}

std::map<std::string, std::type_info const*> products = {{pb.label, pb.type}};
Expand All @@ -50,7 +52,8 @@ namespace form::experimental {

auto it = m_product_to_config.find(products[0].label);
if (it == m_product_to_config.end()) {
throw std::runtime_error("No configuration found for product: " + products[0].label);
std::cerr << "No configuration found for product: " << products[0].label << '\n';
return;
}

// FIXME: Really only needed on first call
Expand Down
Loading