Skip to content

Commit

Permalink
Add warning if name not found in get_scanner_from_name (UCL#1522)
Browse files Browse the repository at this point in the history
* Add warning if name not found in get_scanner_from_name
  • Loading branch information
robbietuk authored Oct 6, 2024
1 parent e46a072 commit efa201d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/buildblock/Scanner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2206,6 +2206,7 @@ Scanner::get_scanner_from_name(const string& name)
type = static_cast<Type>(int_type);
}
// it's not in the list
warning(std::string("Scanner::get_scanner_from_name: scanner'") + name + "' not found");
return new Scanner(Unknown_scanner);
}

Expand Down

0 comments on commit efa201d

Please sign in to comment.