AnzhiZhang commented on code in PR #4006:
URL: https://github.com/apache/texera/pull/4006#discussion_r2512787185


##########
common/workflow-operator/src/main/scala/org/apache/amber/operator/visualization/barChart/BarChartOpDesc.scala:
##########
@@ -88,8 +92,8 @@ class BarChartOpDesc extends PythonOperatorDescriptor {
     )
 
   def manipulateTable(): String = {
-    assert(value.nonEmpty)
-    assert(fields.nonEmpty)
+    assert(value.nonEmpty, "Value column cannot be empty")
+    assert(fields.nonEmpty, "Fields cannot be empty")

Review Comment:
   When this assertion fails, the user will see an empty assertion error in the 
frontend. This gives the user a message with that message.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to