Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Improving message for - ArgumentOutOfRangeException #26

Open
wants to merge 2 commits into
base: release_0.5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Naiad/Runtime/Controlling/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,10 @@ public BaseController(Configuration config)

if (this.configuration.Endpoints != null)
{
if (this.configuration.ProcessID >= this.configuration.Endpoints.Length)
{
throw new ApplicationException("Intended process number (-p) should less then the number supplied to -n");
}
endpoint = this.configuration.Endpoints[this.configuration.ProcessID];
}

Expand Down