https://bugs.freedesktop.org/show_bug.cgi?id=75556
Priority: medium
Bug ID: 75556
Assignee: [email protected]
Summary: BASIC: LibreOffice Basic's 'Error' function does not
return message which corresponds to the error code.
Severity: normal
Classification: Unclassified
OS: Mac OS X (All)
Reporter: [email protected]
Hardware: Other
Whiteboard: BSA
Status: UNCONFIRMED
Version: 4.1.4.2 release
Component: BASIC
Product: LibreOffice
Problem description:
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.
```
Sub Bug_Error()
'
On local error goto ErrorHandler
'
MsgBox "Test output (must be error): " & foo
ErrorHandler:
MsgBox "at line: " & Erl() & ", message (must be ""Undefined variable"" or
sth; NOT be ""Foo""): " & Error( ) & " ( " & Err() & " ) "
End Sub
```
Current behavior:
"Foo"
Expected behavior:
"Undefined variable" or some appropriate message.
Operating System: Mac OS X
Version: 4.1.4.2 release
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs