Add input context to exception message.