Error function returns invalid value (message).
Return value must be error message (string) which corresponds to its error code.
Steps to reproduce:
1. Input the following macro on IDE.
2. Run the Bug_Error().
3. See the pop-up dialog.
On local error goto ErrorHandler
MsgBox "Test output (must be error): " & foo
MsgBox "at line: " & Erl() & ", message (must be ""Undefined variable"" or sth; NOT be ""Foo""): " & Error( ) & " ( " & Err() & " ) "
"Undefined variable" or some appropriate message.
Operating System: Mac OS X
Version: 220.127.116.11 release
On pc Debian x86-64 with 4.2 sources updated some days ago, I got 2 popups:
1) "Test output (must be error):"
2) Error message: "at line: 0, message (must be "Undefined variable" or sth; NOT be "Foo"): ( 0 )"
Build ID: 9bcd96a36e323a1c70eeefa81f2c8ea595f59444
~Can not reproduce on my master build, osx 10.9.5
(In reply to Alex Thurgood from comment #2)
> Version: 18.104.22.168.alpha0+
> Build ID: 9bcd96a36e323a1c70eeefa81f2c8ea595f59444
> ~Can not reproduce on my master build, osx 10.9.5
Same error message as Julien
Also not reproducible on Version: 22.214.171.124
Build ID: edfb5295ba211bd31ad47d0bad0118690f76407d
Please upgrade and report back
Dear Bug Submitter,
This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INVALID
due to lack of needed information.
For more information about our NEEDINFO policy please read the
wiki located here:
If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
Thank you for helping us make LibreOffice even better for everyone!
Dear Bug Submitter,
Please read this message in its entirety before proceeding.
Your bug report is being closed as INVALID due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):
a) Provide details of your system including your operating
system and the latest version of LibreOffice that you have
confirmed the bug to be present
b) Provide easy to reproduce steps – the simpler the better
c) Provide any test case(s) which will help us confirm the problem
d) Provide screenshots of the problem if you think it might help
e) Read all comments and provide any requested information
Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:
a) respond via email
b) update the version field in the bug or any of the other details
on the top section of our bug tracker
-- The LibreOffice QA Team
This INVALID Message was generated on: 2015-05-06
There is no bug in the BASIC engine. In the example cited, add "Option Explicit" to generate an error in the interpretation phase. At this point, "Erl()" is initialized correctly with the number of the line and "Error()" contains the correct message and Err() contains the correct BASIC error number.
Without "Option Explicit", Erl(), Error() and Err() are respectively 0, "" and 0.