Parametrize mwerror port

Change-Id: Ie69c4e5194b10cf19c9f2b0980e6c8f3c7925762
Merge "Parametrize mwerror port" into production