Foone🏳️⚧️ on Nostr: oh, there's a foo() function returning anyhow::Result, so other code can do ...
oh, there's a foo() function returning anyhow::Result, so other code can do foo().with_context("trying to foo")
so when the anyhow::Result from foo() gets printed out on the console, it can say something like "Failed: while trying to foo"
Published at
2024-07-13 06:42:16Event JSON
{
"id": "98c8978966d6408d1a730b398e88f37cd78dad4fd8d6f610506c1aec2b8c80e9",
"pubkey": "8d0c6793de7edd25b3e6fcfd2e4e9b301cec2c7e577a9dcf0247e64d7c3c737e",
"created_at": 1720852936,
"kind": 1,
"tags": [
[
"e",
"5839ed637fbd896461277a6c03ccd3aafad9e84ae9a0ee2e61e4a61f904f24fc",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://digipres.club/users/foone/statuses/112777818052141616",
"activitypub"
]
],
"content": "oh, there's a foo() function returning anyhow::Result, so other code can do foo().with_context(\"trying to foo\")\n\nso when the anyhow::Result from foo() gets printed out on the console, it can say something like \"Failed: while trying to foo\"",
"sig": "f88ca32779297d65827d129cbc58f88e72dd0845af00bc317f08f47ce177cf2ebdb8a338399cef776e855cdc79a6ed103f0bf95e1bf886dc0fb1606816b98c95"
}