Skip to content

Commit

Permalink
Fix an error message
Browse files Browse the repository at this point in the history
Bug: none
Change-Id: Ia62aac731e4c33e7a424eda451edb81151faba52
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6054334
Auto-Submit: Philip Pfaffe <[email protected]>
Commit-Queue: Alex Rudenko <[email protected]>
Commit-Queue: Philip Pfaffe <[email protected]>
Reviewed-by: Alex Rudenko <[email protected]>
  • Loading branch information
pfaffe authored and Devtools-frontend LUCI CQ committed Nov 29, 2024
1 parent 22fb69e commit 0c8fe7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/shared/snapshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const saveSnapshotsIfTaken = () => {
const restoreSnapshots = () => {
if (!currentSnapshotPath || !existsSync(currentSnapshotPath)) {
throw new Error(`Could not find snapshot for ${
currentSnapshotPath}. You can update the snapshots by running the tests with --diff=update.`);
currentSnapshotPath}. You can update the snapshots by running the tests with --on-diff=update.`);
}
currentSnapshot = JSON.parse(readFileSync(currentSnapshotPath, 'utf-8'));
};
Expand Down

0 comments on commit 0c8fe7f

Please sign in to comment.