break generator when happen error (#192)
Co-authored-by: kim <xutao@xiaoheiban.cn>
This commit is contained in:
@@ -55,6 +55,7 @@ func genEtc(dir string, api *spec.ApiSpec) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
formatCode := formatCode(buffer.String())
|
||||
_, err = fp.WriteString(formatCode)
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user