I'm working on a workflow that builds a container then runs a command inside the container and logs to a file on the host when something fails. The problem is, I can't figure out how to surface the actual stderr response from the container. Instead I always get the same dagger graphql error.
"UnknownDaggerError: Encountered an unknown error while requesting data via graphql\nStack: UnknownDaggerError: Encountered an unknown error while requesting data via graphql\n at new DaggerSDKError (/src/.dagger/sdk/core.js:61780:7)\n at new UnknownDaggerError (/src/.dagger/sdk/core.js:61820:7)\n at <anonymous> (/src/.dagger/sdk/core.js:86274:15)\n at processTicksAndRejections (native:7:39)"
Here is where the exec call happens: https://github.com/lifinance/contracts/pull/1260/files#diff-3e501ecd2bc35009db0d4f27cb3e9574fb959df0b68f259765a670e50852e6ecR273-R287
Here is where I try to catch the error and log it: https://github.com/lifinance/contracts/pull/1260/files#diff-3e501ecd2bc35009db0d4f27cb3e9574fb959df0b68f259765a670e50852e6ecR857-R900