Commit bac7880a authored by payno's avatar payno
Browse files

[io] improve raise error message

parent 741be054
......@@ -244,7 +244,7 @@ def read_xas(information, timeout=settings.DEFAULT_READ_TIMEOUT):
url_ = DataUrl(file_path=url_, scheme="PyMca")
if not isinstance(url_, DataUrl):
raise TypeError("given input for, {} is invalid".format(name))
raise TypeError("given input for {} is invalid ({})".format(name, url_))
return url_
_spectra_url = get_url(original_url=information.spectra_url, name="spectra")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment