mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Pipebox: improve an error message
This commit is contained in:
committed by
Pietro Fezzardi
parent
77affee259
commit
b383c9a111
@@ -189,7 +189,10 @@ struct RegisterPipe {
|
||||
});
|
||||
|
||||
// Native
|
||||
revng_assert(native::Registry.Pipes.count(T::Name) == 0);
|
||||
if (native::Registry.Pipes.count(T::Name) != 0) {
|
||||
std::string Error = "Duplicate pipes: '" + T::Name.str() + "'";
|
||||
revng_abort(Error.c_str());
|
||||
}
|
||||
native::Registry.Pipes[T::Name] =
|
||||
[](llvm::StringRef Config) -> std::unique_ptr<native::Pipe> {
|
||||
return std::make_unique<native::PipeImpl<T>>(Config);
|
||||
|
||||
Reference in New Issue
Block a user