Skip to content

TTYSTDError message is incomplete #86

@Iomegan

Description

@Iomegan

In some cases the TTYSTDError message, seems to only contains the first few bytes.

In my scenario I am trying to send an Apple Script command via SSH like this:
osascript -e 'tell application "Finder" to XYZ'

In the Terminal I get the expected execution error:
29:32: execution error: The variable "XYZ" is not defined. (-2753)

However using Citadel, I only get the first 6 bytes:
29:32:

Code to read the error message:

if let error = error as? TTYSTDError {
                        
    let errorMessage = String(buffer: error.message)
          for byte in error.message.readableBytesView {
               print(byte) // Only 6 bytes...
    }
    print("errorMessage: \(errorMessage)") // 29:32:
}

Both client and server run macOS Sequoia 15.1 (24B83)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions