Better error reporting with renaming imports