remove unnecesary '\n' from sys_error