[fix] fix fatdisk tools have no err return bug #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #65 ,if use xmake smart-image -t fat ,the fatdisk tool will start make fatimg ,but if fatimg have no more space ,the tool will not return error but continue copy .The fat.img generated by xmake smart-image-t fat is actually incomplete, resulting in an error,i fix the fatdisk tools ,now if we make image with enough space it will show:
![image](https://private-user-images.githubusercontent.com/103027669/386007352-dd713c44-bde9-4c38-b223-6715107bf395.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDQwOTIsIm5iZiI6MTczOTI0Mzc5MiwicGF0aCI6Ii8xMDMwMjc2NjkvMzg2MDA3MzUyLWRkNzEzYzQ0LWJkZTktNGMzOC1iMjIzLTY3MTUxMDdiZjM5NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwMzE2MzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMjVhMDBlNWMwZjU0OWNkZjhhNDE4NzllZjhhYjM5NWUzZGRmNjc5ZDVjZDQ0NTdiZDI0MTgwZjYyNmUyMDUxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.nG3-0wpcHCsPFgsd7JVAyjdrCK6CHIelLhY9U3dqDmc)
and if we make image with not enough space image it will show:
![image](https://private-user-images.githubusercontent.com/103027669/386007958-560153e3-4b92-45f1-ad6c-af4894353d82.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDQwOTIsIm5iZiI6MTczOTI0Mzc5MiwicGF0aCI6Ii8xMDMwMjc2NjkvMzg2MDA3OTU4LTU2MDE1M2UzLTRiOTItNDVmMS1hZDZjLWFmNDg5NDM1M2Q4Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwMzE2MzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZTljNTkwYTFmYmIyZjQ2YzQxMjJjNmUxYzMzNWMwZmRjMzA5ODVlOTA2NzRlMmU0YTk1Mjk4ZWQ3YzI5YjIxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.dgt1JSj3vUTHU7CRO3Fj9BJwQ0rFI1sKEH5ORYzaw8M)