Improve diagnostics for Scanless if