thursday minor edits

- better diagnostic when login fails
- better handling when macro expansion fails