mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-02-18 10:22:16 -07:00
Fix syntax of thrown errors.
done as part of CURA-11622
This commit is contained in:
parent
6d0a30d496
commit
9002e010cf
1 changed files with 3 additions and 3 deletions
|
|
@ -182,11 +182,11 @@ class CuraConan(ConanFile):
|
|||
src_path = str(Path(cura_source_folder, data["src"]))
|
||||
else:
|
||||
if data["package"] not in self.dependencies:
|
||||
raise ConanException(f"Required package {data["package"]} does not exist as a dependency")
|
||||
raise ConanException(f"Required package {data['package']} does not exist as a dependency")
|
||||
|
||||
package_folder = self.dependencies[data["package"]].package_folder
|
||||
package_folder = self.dependencies[data['package']].package_folder
|
||||
if package_folder is None:
|
||||
raise ConanException(f"Unable to find package_folder for {data["package"]}, check that it has not been skipped")
|
||||
raise ConanException(f"Unable to find package_folder for {data['package']}, check that it has not been skipped")
|
||||
|
||||
src_path = os.path.join(self.dependencies[data["package"]].package_folder, data["src"])
|
||||
elif "root" in data: # get the paths relative from the install folder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue