diff --git a/bin/slubsipbuilderbagit.pl b/bin/slubsipbuilderbagit.pl
index bf52e09b1feb6da85c6f361354f2037088f6d9dc..b26ea61775e971d2e6887def98d32272d25be8f0 100644
--- a/bin/slubsipbuilderbagit.pl
+++ b/bin/slubsipbuilderbagit.pl
@@ -205,10 +205,7 @@ package SLUB::LZA::SIPBuilderBagIt;
                 SLUB::LZA::SIPBuilderBagIt::write_file("DEBUG_${ppn}_catalog_response.xml", $response->decoded_content);
             }
             my $recordData = $xp->findnodes_as_string('/*[local-name()="searchRetrieveResponse"]/*[local-name()="records"]/*[local-name()="record"]/*[local-name()="recordData"]/*');
-            if (!$recordData) {
-                print_scalar_data("", "ERROR: did not get any <recordData/> for PPN '$ppn' using '$sru'", "", "red");
-                die();
-            }
+            if (!$recordData) { croak("ERROR: Did not get any <recordData/> for PPN '$ppn' using '$sru'");}
             my $marc_doc = $parser->parse_string($recordData);
             add_marc21_schema_location($marc_doc);
             if ($with_debug) {