Skip to content

Commit 9ed034a

Browse files
committed
Use console.error to show situations that need to be addressed
1 parent 217ba11 commit 9ed034a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ function mergeMetadatas(metadatas: Array<Metafile>): Metafile {
3838
// could have different values if tree-shaking is enabled -- this will detect
3939
// those cases and warn the user, and if it happens we can figure out how to
4040
// handle it.
41-
console.warn(
41+
console.error(
4242
`Different values found for key in metadata: ${key}. Overwriting.`
4343
);
4444
}
4545
mergedMetadata.inputs[key] = value;
4646
});
4747
Object.entries(metafile.outputs).forEach(([key, value]) => {
4848
if (mergedMetadata.outputs[key]) {
49-
console.warn(`Duplicate key found in metadata: ${key}. Overwriting.`);
49+
console.error(`Duplicate key found in metadata: ${key}. Overwriting.`);
5050
}
5151
mergedMetadata.outputs[key] = value;
5252
});

0 commit comments

Comments
 (0)