When writing my own interactive function, whats the best way to report that nothing happened.
(if line-is-empty
(message "Found empty line, nothing to do!")
(do-stuff))
Or is it better to use an error (even though it's not exactly an error, just that the command can't do anything useful).
(when line-is-empty
(error "Found empty line, nothing to do!"))
(do-stuff)
user-error
would be better in your case than justerror
if you eventually want to interpret it as an error.