Browse Source

Improved debugging of layout creation by printing the content.

David Piuva 5 years ago
parent
commit
a0941229ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/DFPSR/gui/DsrWindow.cpp

+ 1 - 1
Source/DFPSR/gui/DsrWindow.cpp

@@ -113,7 +113,7 @@ void DsrWindow::loadInterfaceFromString(String layout) {
 	// Load a tree structure of visual components from text
 	// Load a tree structure of visual components from text
 	this->mainPanel = std::dynamic_pointer_cast<VisualComponent>(createPersistentClassFromText(layout));
 	this->mainPanel = std::dynamic_pointer_cast<VisualComponent>(createPersistentClassFromText(layout));
 	if (this->mainPanel.get() == nullptr) {
 	if (this->mainPanel.get() == nullptr) {
-		throwError(U"DsrWindow::loadInterfaceFromString: The window's root component could not be created!");
+		throwError(U"DsrWindow::loadInterfaceFromString: The window's root component could not be created!\n\nLayout:\n", layout, "\n");
 	}
 	}
 	this->applyLayout();
 	this->applyLayout();
 }
 }