# Without safeError: Shiny shows a generic 'An error has occurred' message
stop("Something went wrong")

# With safeError: Shiny displays your exact message to the user
stop(safeError("The selected column contains no variance. Please choose a different variable."))
