(value: string)
| 314 | } |
| 315 | |
| 316 | export function assertShellRunIdentifier(value: string): void { |
| 317 | if (!isShellRunId(value)) throw new Error('Invalid shell run id'); |
| 318 | } |
| 319 | |
| 320 | export function shellRunNotFoundError(shellRunId: string): Error & { code?: string } { |
| 321 | const error = new Error(`ShellRun does not exist: ${shellRunId}`) as Error & { code?: string }; |
no test coverage detected