More catchs
This commit is contained in:
1 parent
f9dd014d3f
commit
75fa716046
1 file changed
+6
-1
@@ -70,7 +70,12 @@ namespace PaymentLogs
|
||||
};
|
||||
Program.PaymentRepository.Update(payment.Id, payment);
|
||||
} catch(NullReferenceException ignored)
|
||||
{ }
|
||||
{
|
||||
Console.WriteLine(ignored.Message);
|
||||
} catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
Program.PaymentRepository.Save();
|
||||
|
||||
Reference in new issue
Block a user