fix(mason_logger): throw StateError when prompting with no terminal attached
Currently if mason_logger is used to prompt for input from a user in an environment with no terminal attached (e.g. CI), the process will hang indefinitely. This change adjusts the behavior to throw a StateError in order to make it clear that prompting for input should only be done in contexts where a terminal is attached.
Type of Change
[ ] โจ New feature (non-breaking change which adds functionality)
[X] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
[ ] โ Breaking change (fix or feature that would cause existing functionality to change)
Status
READY
Description
StateError
when prompting with no terminal attachedStateError
in order to make it clear that prompting for input should only be done in contexts where a terminal is attached.Type of Change