Skip to content

Commit

Permalink
fix: clarify ordering error
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Apr 6, 2024
1 parent f083bdd commit da0901c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/features/keys/select-macro/lib/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export function stepsToActions (steps: MacroStep[]): MacroAction[] {
delay
})
} else {
throw new Error('Incorrect step order')
throw new Error(
'Incorrect step order: A Wait step cannot directly follow another Wait step without an intervening KeyUp or KeyDown step.'
)
}
}
return macro
Expand Down

0 comments on commit da0901c

Please sign in to comment.