mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-03 22:57:12 +00:00
5 lines
171 B
JavaScript
5 lines
171 B
JavaScript
export function createTimeoutError(label, timeoutMs) {
|
|
const error = new Error(`${label} timed out after ${timeoutMs}ms`);
|
|
error.code = "ETIMEDOUT";
|
|
return error;
|
|
}
|