So I have a spark command where I call CLI::error("something went wrong"). This works fine when run from the command line.
When I run this same spark command inside a controller, it will throw the following exception:
Quote:CRITICAL - 2024-01-18 15:16:50 --> Error: Undefined constant "CodeIgniter\CLI\STDERR"
in SYSTEMPATH\CLI\CLI.php on line 488.
If I instead, change it to CLI::write() then there are no problems.
Is there something I need to include?