fix BuildSvn
better error msg
add assertions