Fix some error messages not being displayed

This commit is contained in:
Rafał Dzięgiel
2021-04-09 18:49:44 +02:00
parent dafa2cfdf5
commit d9939a94c2
4 changed files with 21 additions and 28 deletions

View File

@@ -131,7 +131,7 @@ function getFileFromLocalUri(uri)
const file = Gio.file_new_for_uri(uri);
if(!file.query_exists(null)) {
debug(`file does not exist: ${file.get_path()}`, 'LEVEL_WARNING');
debug(new Error(`file does not exist: ${file.get_path()}`));
return null;
}