controller: fix string formatting in exception message

Reviewer: trivial