Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Commit fb43ff5

Browse files
committed
Optimize error message when adding multiple operations on PathBuilder, fixes #27
1 parent b9ffd39 commit fb43ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/QafooLabs/Patches/PatchBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private function assertValidOriginalLine($originalLine)
162162
}
163163

164164
if (isset($this->operations[$originalLine])) {
165-
throw new \RuntimeException(sprintf("Adding more than one operation to line %d is not allowed.", $originalLine));
165+
throw new \RuntimeException(sprintf("Adding more than one operation to line %d is not allowed in path %s.", $originalLine, $this->path));
166166
}
167167
}
168168

0 commit comments

Comments
 (0)