Return error in case of misspelled urls

Hi Yuyi,

this fixes https://github.com/dmwm/DBS/issues/287. Could review and merge, please?

Thanks,
Manuel