diff --git a/src/all_building_blocks/building_blocks.jl b/src/all_building_blocks/building_blocks.jl index 8f9252159e4626cb5a4fc39d2261b853bb1f4460..05fb77aff998a957203ee3cd91184cbbad2a9ce3 100644 --- a/src/all_building_blocks/building_blocks.jl +++ b/src/all_building_blocks/building_blocks.jl @@ -79,7 +79,7 @@ function get_pulse(bb::BuildingBlock) end if length(pulses) == 1 return pulses[1] - else + end error("BuildingBlock contains more than one pulse. Not sure which one to return.") end @@ -90,7 +90,7 @@ function get_readout(bb::BuildingBlock) end if length(readouts) == 1 return readouts[1] - else + end error("BuildingBlock contains more than one readout. Not sure which one to return.") end