Skip to content

Commit f2465c3

Browse files
committed
change (publisher) don't deploy erred model
1 parent 379166c commit f2465c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/server-code/publisher.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ exports.publish = function(opts) {
2121
if (model.isEmpty() && !opts.allowEmpty) {
2222
throw new Error('Nothing to publish');
2323
}
24+
25+
if (model.errors.length) {
26+
throw new Error('Please resolve Model Errors before deploying to production');
27+
}
2428
}
2529

2630
function zip() {

0 commit comments

Comments
 (0)