Skip to content

Commit

Permalink
Added assert message to messageQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeSapkin committed Feb 6, 2015
1 parent 0e446df commit 10f9330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/core/task.d
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct Task {
}

/// Reserved for internal use!
@property inout(MessageQueue) messageQueue() inout { assert(running); return fiber.messageQueue; }
@property inout(MessageQueue) messageQueue() inout { assert(running, "Task is not running"); return fiber.messageQueue; }

T opCast(T)() const nothrow if (is(T == bool)) { return m_fiber !is null; }

Expand Down

0 comments on commit 10f9330

Please sign in to comment.