 +    # Handle error special cases
 +    my $cause = $response->result->{'melding'};
 +    return ($response, 1) unless $cause;
-+    say $cause;
 +
 +    if ($cause =~ /lnr finnes allerede i registeret/) {
 +        # Because of staff mistakes, patrons are sometimes registered with existing cardnumber

     return $borrowersync->update({ 'hashed_pin', _encrypt_pin( $pin ) });

 }
@@ -564,6 +657,23 @@ sub _format_soap_error {

 }



* Make sure 'server_tid' is stored in borrower_sync.lastsync after successfull sync.

* Turn of sync if patron is missing fnr

* Turn of sync if patron is allready deleted in NL


diff --git a/Koha/NorwegianPatronDB.pm b/Koha/NorwegianPatronDB.pm
index 237ddd7..378cfed 100644
--- a/Koha/NorwegianPatronDB.pm
+++ b/Koha/NorwegianPatronDB.pm
@@ -74,6 +74,7 @@ our %EXPORT_TAGS = ( all => [qw(
