better error messages for library-picker
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user