File tree 1 file changed +24
-9
lines changed
1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,31 @@ class PrinterBuilder {
60
60
Map <String , Led > leds = {};
61
61
62
62
Printer build () {
63
- if (toolhead == null ||
64
- printFan == null ||
65
- gCodeMove == null ||
66
- motionReport == null ||
67
- displayStatus == null ||
68
- print == null ||
69
- configFile == null ||
70
- virtualSdCard == null ) {
71
- throw const MobilerakerException ('Missing field' );
63
+ if (toolhead == null ) {
64
+ throw const MobilerakerException ('Missing field: toolhead' );
72
65
}
66
+ if (printFan == null ) {
67
+ throw const MobilerakerException ('Missing field: printFan' );
68
+ }
69
+ if (gCodeMove == null ) {
70
+ throw const MobilerakerException ('Missing field: gCodeMove' );
71
+ }
72
+ if (motionReport == null ) {
73
+ throw const MobilerakerException ('Missing field: motionReport' );
74
+ }
75
+ if (displayStatus == null ) {
76
+ throw const MobilerakerException ('Missing field: displayStatus' );
77
+ }
78
+ if (print == null ) {
79
+ throw const MobilerakerException ('Missing field: print' );
80
+ }
81
+ if (configFile == null ) {
82
+ throw const MobilerakerException ('Missing field: configFile' );
83
+ }
84
+ if (virtualSdCard == null ) {
85
+ throw const MobilerakerException ('Missing field: virtualSdCard' );
86
+ }
87
+
73
88
var printer = Printer (
74
89
toolhead: toolhead! ,
75
90
extruders: extruders,
You can’t perform that action at this time.
0 commit comments