Skip to content

Commit

Permalink
Merge pull request #977 from GeorgeSapkin/asserts
Browse files Browse the repository at this point in the history
Added assert message to messageQueue
  • Loading branch information
s-ludwig committed Feb 21, 2015
2 parents 0713a65 + 10f9330 commit 5810257
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 @@ -84,7 +84,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 5810257

Please sign in to comment.