Adds quotes to action in exception