Misleading error-info

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Misleading error-info

Post by PeterH »

If, in a ::load, I specify a nonexisting file, the errormsg says the wrong filename with an appended .xys - no matter what the original ending was.
wrong.txt :arrow: wrong.txt.xys
wrong.xys :arrow: wrong.xys.xys

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Post by fishgod »

I think, when "wrong.txt" is not found, so XY tries to add the ".xys"-postfix. If there is also no file called "wrong.txt.xys" XY prints this error... and the message only shows up the wrong filename, but it checked the existing of the right one.
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

fishgod wrote:I think, when "wrong.txt" is not found, so XY tries to add the ".xys"-postfix. If there is also no file called "wrong.txt.xys" XY prints this error... and the message only shows up the wrong filename, but it checked the existing of the right one.
That's right. But the message is indeed misleading. I fixed that. Now it will show the first, unaltered filename.

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post by PeterH »

...verified...

And I must say: one of the many many pieces of good work in the current beta!

Thanks to Don!

Post Reply