Skip to content

Commit 3b870e8

Browse files
committed
fix(erroring): fix non-fatal error
change the fsx.copy err from a console error to log, since it will error is the assets already exist, which is non-fatal.
1 parent b686e8b commit 3b870e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ function checkFiles() {
7676
// copy document assets
7777
function copyAssets() {
7878
fsx.copy(apiAssets, buildOptions.buildDir + 'assets', function(err) {
79-
if (err) { return console.error('Error copying assets:', err); }
79+
// Quiet this error since it will show if assets already exist
80+
if (err && !buildOptions.buildQuiet) { return console.log('Error copying assets:', err); }
8081
if (!buildOptions.buildQuiet) { console.log('NODe: asset copy success'); }
8182
});
8283
checkFiles();

0 commit comments

Comments
 (0)