Skip to content

Commit

Permalink
More BadDelay exceptions now point out that min/max delay can be set.
Browse files Browse the repository at this point in the history
  • Loading branch information
heplesser committed Dec 21, 2015
1 parent 236e2cb commit 1449e2f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nestkernel/connector_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ ConnectorModel::assert_two_valid_delays_steps( delay new_delay1, delay new_delay
{
if ( user_set_delay_extrema_ )
{
throw BadDelay(
Time::delay_steps_to_ms( ldelay ), "Delay must be greater than or equal to min_delay." );
throw BadDelay( Time::delay_steps_to_ms( ldelay ),
"Delay must be greater than or equal to min_delay. "
"You may set min_delay before creating connections." );
}
else
{
Expand All @@ -156,8 +157,9 @@ ConnectorModel::assert_two_valid_delays_steps( delay new_delay1, delay new_delay
{
if ( user_set_delay_extrema_ )
{
throw BadDelay(
Time::delay_steps_to_ms( hdelay ), "Delay must be smaller than or equal to max_delay." );
throw BadDelay( Time::delay_steps_to_ms( hdelay ),
"Delay must be smaller than or equal to max_delay. "
"You may set max_delay before creating connections." );
}
else
{
Expand Down

0 comments on commit 1449e2f

Please sign in to comment.