Merge branch 'main' into joshmgross/matrix-context-validation

This commit is contained in:
Josh Gross
2022-12-08 14:03:40 -05:00
26 changed files with 5220 additions and 250 deletions
+3 -3
View File
@@ -22,6 +22,7 @@ import {ContextProviderConfig} from "./context-providers/config";
import {getContext} from "./context-providers/default";
import {getWorkflowContext, WorkflowContext} from "./context/workflow-context";
import {AccessError, wrapDictionary} from "./expression-validation/error-dictionary";
import {error} from "./log";
import {nullTrace} from "./nulltrace";
import {getAllowedContext} from "./utils/allowed-context";
import {findToken} from "./utils/find-token";
@@ -75,8 +76,7 @@ export async function validate(
});
}
} catch (e) {
// TODO: Handle error here
console.error(e);
error(`Unhandled error while validating: ${e}`);
}
return diagnostics;
@@ -211,7 +211,7 @@ async function validateExpression(
range: mapRange(expression.range)
});
} else {
// Ignore error
throw e;
}
}
}