Kaydet (Commit) c706f61c authored tarafından Luboš Luňák's avatar Luboš Luňák

say in log message which opcode is not handled by OpenCL

Change-Id: I836969c777382a3a7dce23733ebfc331391bf4b4
Reviewed-on: https://gerrit.libreoffice.org/65477
Tested-by: Jenkins
Reviewed-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
üst ba5eaf86
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#include "op_spreadsheet.hxx" #include "op_spreadsheet.hxx"
#include "op_addin.hxx" #include "op_addin.hxx"
#include <com/sun/star/sheet/FormulaLanguage.hpp>
// FIXME: The idea that somebody would bother to (now and then? once a year? once a month?) manually // FIXME: The idea that somebody would bother to (now and then? once a year? once a month?) manually
// edit a source file and change the value of some #defined constant and run some ill-defined // edit a source file and change the value of some #defined constant and run some ill-defined
// "correctness test" is of course ludicrous. Either things are checked in normal unit tests, in // "correctness test" is of course ludicrous. Either things are checked in normal unit tests, in
...@@ -3758,7 +3760,9 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments(const ScCalcConfig& config, ...@@ -3758,7 +3760,9 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments(const ScCalcConfig& config,
break; break;
default: default:
throw UnhandledToken("unhandled opcode", __FILE__, __LINE__); throw UnhandledToken(OUString("unhandled opcode "
+ formula::FormulaCompiler().GetOpCodeMap(com::sun::star::sheet::FormulaLanguage::ENGLISH)->getSymbol(opc)
+ "(" + OUString::number(opc) + ")").toUtf8().getStr(), __FILE__, __LINE__);
} }
} }
} }
......
Markdown is supported
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