[sr-dev] git:master:aeb9b5af: ctl: proper trim for long error messages to avoid out of bounds access