fix: preserve scoped V12 diagnostics pending interrupted QA proof
This commit is contained in:
@@ -5,6 +5,20 @@ import {
|
||||
type InvestmentReportTable,
|
||||
} from './integral-financial-report.ts';
|
||||
import type { BusinessFinancialPlanInput } from './business-financial-plan.ts';
|
||||
import { calculateStartupAssetRequirements } from './startup-asset-requirements.ts';
|
||||
|
||||
/** The local startup editor owns this error when report tables are unavailable. */
|
||||
export function startupErrorMessage(plan: BusinessFinancialPlanInput): string {
|
||||
if (plan.startupAssetRequirements)
|
||||
try {
|
||||
calculateStartupAssetRequirements(plan);
|
||||
} catch (cause) {
|
||||
return cause instanceof Error
|
||||
? cause.message
|
||||
: 'Confira os dados de arranque.';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/** Do not hide a forecast error when the report editor itself cannot show the tables. */
|
||||
export function forecastErrorShownInReport(
|
||||
|
||||
Reference in New Issue
Block a user