Skip to content

Commit

Permalink
fix: crash at logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lazerblasters committed Oct 5, 2021
1 parent aa60a59 commit 015d210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/WriteFiles.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const writeFiles = async ({
}
} catch (ex) {
addLog({ level: 'error', message: 'Failed to write redux file' });
addLog({ level: 'error', message: (ex as string) });
addLog({ level: 'error', message: JSON.stringify(ex) });
}

/**
Expand Down Expand Up @@ -96,7 +96,7 @@ export const writeFiles = async ({
}
} catch (ex) {
addLog({ level: 'error', message: 'Failed to write dev notes file' });
addLog({ level: 'error', message: (ex as string) });
addLog({ level: 'error', message: JSON.stringify(ex) });
}

/**
Expand All @@ -113,7 +113,7 @@ export const writeFiles = async ({
});
} catch (ex) {
addLog({ level: 'error', message: `Failed to write ${file.filename}` });
addLog({ level: 'error', message: (ex as string) });
addLog({ level: 'error', message: JSON.stringify(ex) });
}
})
);
Expand Down

0 comments on commit 015d210

Please sign in to comment.