From af96d720e9340e02b1ec6dafe10bf9a47e045804 Mon Sep 17 00:00:00 2001
From: Lex Neva <lexelby@users.noreply.github.com>
Date: Thu, 7 Sep 2023 13:25:47 -0400
Subject: improve params errors (#2437)

---
 electron/src/renderer/components/Simulator.vue | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'electron/src/renderer/components/Simulator.vue')

diff --git a/electron/src/renderer/components/Simulator.vue b/electron/src/renderer/components/Simulator.vue
index 6d76b133..e2d65ed8 100644
--- a/electron/src/renderer/components/Simulator.vue
+++ b/electron/src/renderer/components/Simulator.vue
@@ -306,6 +306,19 @@
         </div>
       </div>
     </loading>
+    <v-dialog v-model="error" width="auto">
+      <v-card flat>
+        <v-card-title class="pa-4">
+          Error Generating Stitch Plan
+        </v-card-title>
+        <v-card-text>
+          <p style="white-space: pre-wrap;">{{ error_message }}</p>
+        </v-card-text>
+        <v-card-actions class="justify-center">
+          <v-btn color="primary" variant="text" class="dialog-button" @click="close">Close</v-btn>
+        </v-card-actions>
+      </v-card>
+    </v-dialog>
   </div>
 </template>
 
-- 
cgit v1.2.3

