error • nreturn

No return value (18)

You tried to use a procedure like a function.