Reached the end of the current function without returning a value.

#6053   Run-time catchable error

Reached the end of the current function without returning a value.

Explanation

This happens when an internal value-returning function is about to hit the end without returning. The compiler would have issued a warning message about this (if the "-warning" option was specified).