We should probably create human-readable versions of the flags so the string can be "Expected flags <%s> but was <%s>". This way you'd get an output like "Expected <clear top, no animation> but was <new task>.".

If you want, I can just merge and update it myself.