Skip to content

Commit e304df0

Browse files
committed
changes in warning logs
1 parent 4403f09 commit e304df0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/lib/processSnapshot.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -681,17 +681,15 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
681681
viewport.width,
682682
snapshot.name
683683
);
684-
685-
686-
if(renderViewports.length > 1){
687-
optionWarnings.add(`for snapshot ${snapshot.name}, coordinates may not be accurate for multiple viewports`);
688-
}
689-
690684

691685
if (!validation.valid) {
692686
optionWarnings.add(validation.error!);
693687
continue;
694688
}
689+
690+
if(renderViewports.length > 1){
691+
optionWarnings.add(`for snapshot ${snapshot.name} viewport ${viewportString}, coordinates may not be accurate for multiple viewports`);
692+
}
695693

696694
const coordinateElement = {
697695
type: 'coordinates',

0 commit comments

Comments
 (0)