Log API errors to the console and stop trigger execution.