Ticket #14715: helpful_value_error.patch

File helpful_value_error.patch, 638 bytes (added by btubbs, 14 years ago)
  • django/utils/_os.py

     
    4141    # equal to base_path).
    4242    if not final_path.startswith(base_path) \
    4343       or final_path[base_path_len:base_path_len+1] not in ('', sep):
    44         raise ValueError('the joined path is located outside of the base path'
    45                          ' component')
     44        raise ValueError('the joined path (%s) is located outside of the base path'
     45                         ' component (%s)' % (final_path, base_path))
    4646    return final_path
Back to Top