Fixed error message for script function unixts() if it's given wrong parameter count

master
Tomatix 4 years ago
parent ba9d175840
commit c2ca24c5ff
  1. 2
      ScriptFunctions/ScriptGeneralUtils.cpp

@ -152,7 +152,7 @@ ValueHolder context(Script&, std::vector<ValueHolder>& args)
ValueHolder unixts(Script&, std::vector<ValueHolder>& args)
{
if (args.empty())
throwInsufficientParameters("unixts", args.size(), 0);
throwInsufficientParameters("unixts", args.size(), 1);
qint64 ts = ValueExtract(args[0]).toInt();
auto datetime = QDateTime::fromSecsSinceEpoch(ts);

Loading…
Cancel
Save