Remove trailing slash
Adding location into error message