Commit 12ee41f8 authored by Drew's avatar Drew

Improving diagnostic QOL

parent 6f68ec66
Pipeline #757 passed with stage
......@@ -198,8 +198,10 @@ final public class Package {
self.overlays["\(remotePackage.name).\(overlayName)"] = value
}
}
if let overlays = type.properties["overlays"]?.map {
if let ol = type.properties["overlays"] {
guard let overlays = ol.map else {
fatalError("Non-map overlay \(ol)")
}
for (name, overlay) in overlays {
guard let innerOverlay = overlay.map else {
fatalError("Non-map overlay \(overlay)")
......@@ -226,7 +228,7 @@ final public class Package {
for overlayName in task.overlay {
if task.appliedOverlays.contains(overlayName) { continue }
guard let overlay = declaredOverlays[overlayName] else {
fatalError("Can't find overlay named \(overlayName) in \(overlays)")
fatalError("Can't find overlay named \(overlayName) in \(declaredOverlays)")
}
again = again || task.applyOverlay(overlayName, overlay: overlay)
}
......@@ -234,7 +236,7 @@ final public class Package {
if task.appliedOverlays.contains(overlayName) { continue }
guard let overlay = declaredOverlays[overlayName] else {
fatalError("Can't find overlay named \(overlayName) in \(overlays)")
fatalError("Can't find overlay named \(overlayName) in \(declaredOverlays)")
}
again = again || task.applyOverlay(overlayName, overlay: overlay)
usedGlobalOverlays.append(overlayName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment