mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user