Provide additional debugging info before lnsrch1 crashes with error

Provides more info in case of a very common problem often encountered in the forum.