Skip to content

Commit

Permalink
Add named QueueBusy error to the kickoff instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Garfield committed Oct 14, 2022
1 parent d0df426 commit 277ce1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/queue/src/instructions/queue_kickoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct QueueKickoff<'info> {
],
bump,
constraint = !queue.paused @ ClockworkError::QueuePaused,
constraint = queue.next_instruction.is_none()
constraint = queue.next_instruction.is_none() @ ClockworkError::QueueBusy,
)]
pub queue: Box<Account<'info, Queue>>,

Expand Down

0 comments on commit 277ce1b

Please sign in to comment.