feat: commit code

This commit is contained in:
mrxiaozhuox committed 2022-01-19 00:47:48 +08:00
1 parent 7f53b7de6a
commit 91907d21d2
1 file changed
-2
-2
View File
@@ -44,7 +44,6 @@ impl Translate {
let contents;
let temp = input.map(|f| {
std::fs::read_to_string(&f).unwrap_or_else(|e| {
// panic!("Could not read input file: {}", e)
log::error!("Cloud not read input file: {}.", e);
exit(0);
})
@@ -54,7 +53,6 @@ impl Translate {
contents = s;
} else {
if atty::is(atty::Stream::Stdin) {
// panic!("No input file, source, or stdin to translate from");
log::error!("No input file, source, or stdin to translate from.");
exit(0);
}