I am creating a Stack question in which I would like to check if a sum given by a student is convergent.

I thought this problem was undecidable, but in Maxima if I enter:

sum(1/k,k,1,inf);

sum: sum is divergent.

-- an error. To debug this try: debugmode(true);

However this "errcatch" routine is forbidden in Stack. Is there an other way to catch an error in Stack ?

Stack version : 4.2

Maxima version: 5.34.1-2