import { isSeamHttpApiError } from '@seamapi/http/connect';
export function getErrorMessage(error) {
    if (isSeamHttpApiError(error)) {
        return error.message;
    }
    return t.anUnknownErrorOccurred;
}
const t = {
    anUnknownErrorOccurred: 'An unknown error occurred',
};
//# sourceMappingURL=errors.js.map