forked from loafle/openapi-generator-original
use interrupted exception instead of just exception (#9092)
This commit is contained in:
@@ -685,8 +685,10 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
||||
} else {
|
||||
LOGGER.info("Successfully executed: {}", command);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (InterruptedException | IOException e) {
|
||||
LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage());
|
||||
// Restore interrupted state
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user