better error messages for library-picker

This commit is contained in:
Logan Jones
2025-04-08 18:20:39 -05:00
parent c46c631fb0
commit c66d1820aa
@@ -24,7 +24,7 @@ export class LibraryPicker extends LitElement {
then((result) => { then((result) => {
if (result.length === 0) { return; } if (result.length === 0) { return; }
this.currentLibraryDirectoryText = result; this.currentLibraryDirectoryText = result;
}).catch((err) => { console.error(err) }) }).catch((err) => { console.error("error with getting current library directory: " + err) })
} }
onSelectLibraryClick() { onSelectLibraryClick() {
@@ -34,11 +34,11 @@ export class LibraryPicker extends LitElement {
SetDir(result).then(() => { SetDir(result).then(() => {
this.currentLibraryDirectoryText = result; this.currentLibraryDirectoryText = result;
}).catch((err: string) => { }).catch((err: string) => {
console.error("There is an error with saving selected directory: " + err); console.error("error with saving selected directory: " + err);
}); });
}) })
.catch((err) => { .catch((err) => {
console.error("There is an error with directory picker: " + err); console.error("error with directory picker: " + err);
}); });
} }
catch (err) { catch (err) {