fix(core.gbapp): Themes optional package.

This commit is contained in:
me@rodrigorodriguez.com 2024-10-13 23:11:11 -03:00
parent 22384ed299
commit 29712b9528

View file

@ -522,9 +522,15 @@ export class GBDeployer implements IGBDeployer {
let url = `${baseUrl}/drive/root:/${packagePath}:/children`;
GBLogEx.info(min, `Downloading: ${url}`);
let documents;
const res = await client.api(url).get();
const documents = res.value;
try {
const res = await client.api(url).get();
documents = res.value;
} catch (error) {
GBLogEx.info(min, `Error downloading: ${error.toString()}`);
}
if (documents === undefined || documents.length === 0) {
GBLogEx.info(min, `${remotePath} is an empty folder.`);
return null;