summaryrefslogtreecommitdiff
path: root/Aktywator/PBN.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-10-24 00:39:10 +0200
committeremkael <emkael@tlen.pl>2018-10-24 00:39:10 +0200
commit5adb7bd504505036d3f32c5afcc6e3a5835f2d4a (patch)
treeac49b35f5cae9d4c26bd143a916c5742f6c32777 /Aktywator/PBN.cs
parent3bbab1df5cd9caf178e6efc63e28a3898a8aaed2 (diff)
Hand record upload error handling improved
Diffstat (limited to 'Aktywator/PBN.cs')
-rw-r--r--Aktywator/PBN.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Aktywator/PBN.cs b/Aktywator/PBN.cs
index e312d63..2e36aef 100644
--- a/Aktywator/PBN.cs
+++ b/Aktywator/PBN.cs
@@ -43,6 +43,10 @@ namespace Aktywator
this._count++;
}
}
+ if (this._count == 0)
+ {
+ throw new Exception("PBN nie zawiera rozdań z zadanego przedziału");
+ }
if (pbn.Boards.Count > 0 && pbn.Boards[0].HasField("Event"))
{
this._title = pbn.Boards[0].GetField("Event");