minor changes to make linting happier (#598)

* minor changes to make linting happy

* remove cast since linter wasn't happy

* address PR comments
This commit is contained in:
Fabio Pliger
2022-07-28 15:30:03 -05:00
committed by GitHub
parent 9102768366
commit 8e1cd0b268
9 changed files with 35 additions and 71 deletions

View File

@@ -60,7 +60,7 @@ function showError(msg: string): void {
function handleFetchError(e: Error, singleFile: string) {
//Should we still export full error contents to console?
console.warn('Caught an error in loadPaths:\r\n' + e);
console.warn(`Caught an error in loadPaths:\r\n ${e.toString()}`);
let errorContent: string;
if (e.message.includes('TypeError: Failed to fetch')) {
errorContent = `<p>PyScript: Access to local files