Skip to content

Commit

Permalink
Make default return value non-zero
Browse files Browse the repository at this point in the history
Fixes the errenous(?) raising of an exception after the plugin has run
successfully
  • Loading branch information
tmadlener committed Jun 23, 2023
1 parent aaca62f commit fdf2570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDCore/src/gdml/DetElementCreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ int DetElementCreator::operator()(PlacedVolume pv, int vol_level) {

/// Callback to output PlacedVolume information of an entire Placement
int DetElementCreator::process(PlacedVolume pv, int lvl, bool recursive) {
int ret = 0;
int ret = 1;
string pv_nam = pv.name();
if ( detector_volume_level > 0 ||
( (!detector_volume_match.empty() &&
Expand Down

0 comments on commit fdf2570

Please sign in to comment.