"use strict";const i=require("./index-CVOA4qIe.js");function n(e){if(e instanceof i.AppError&&e.details)if(Array.isArray(e.details)){if(e.details.length>0)return e.details.join(" ")}else{const s=[];for(const t of Object.values(e.details))Array.isArray(t)?s.push(...t):typeof t=="string"&&s.push(t);if(s.length>0)return s.join(" ")}return e instanceof Error?e.message:typeof e=="string"?e:"An unexpected error occurred"}exports.extractErrorMessage=n;
//# sourceMappingURL=extractErrorMessage-KKepflfC.js.map
