Skip to content

Commit

Permalink
fix(core.gbapp): Themes optional package.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 14, 2024
1 parent 22384ed commit 29712b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/core.gbapp/services/GBDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 29712b9

Please sign in to comment.