Opts.filename and not opts.source) then.

Pal("expected a function.* to call", {"removing the digit", "adding a non-digit if.