warn and return
Merge pull request #400 from salil93/ls_error

Minor bug fix in getLineScan/setLinescan. Thanks for your contribution.