@markus-global/cli 0.4.17 → 0.4.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/markus.mjs CHANGED
@@ -54286,7 +54286,14 @@ var init_router = __esm({
54286
54286
  const prefix = `[${provider}:${model}]`;
54287
54287
  if (error instanceof Error) {
54288
54288
  if (!error.message.startsWith(prefix)) {
54289
- error.message = `${prefix} ${error.message}`;
54289
+ try {
54290
+ error.message = `${prefix} ${error.message}`;
54291
+ } catch {
54292
+ const wrapped = new Error(`${prefix} ${error.message}`);
54293
+ wrapped.stack = error.stack;
54294
+ wrapped.cause = error;
54295
+ return wrapped;
54296
+ }
54290
54297
  }
54291
54298
  return error;
54292
54299
  }