Buckets:
| // Copyright (c) 2026 the Zuke contributors | |
| // SPDX-License-Identifier: MIT | |
| /** | |
| * The message of something that was thrown, for wrapping it in a canary's own | |
| * error. | |
| * | |
| * @module | |
| */ | |
| /** An error's message, or the thrown value as text. */ | |
| export function messageOf(error: unknown): string { | |
| return error instanceof Error ? error.message : String(error); | |
| } | |
Xet Storage Details
- Size:
- 364 Bytes
- Xet hash:
- 41b7e943205bf933687bf8cc575b8183273732d1d46446079f05aba9a74e31c9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.