Skip to content

Commit be9ee6a

Browse files
committed
Print error on invalid file
1 parent c5f1761 commit be9ee6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Tools/mlir-query/MlirQueryMain.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ mlir::mlirQueryMain(int argc, char **argv, MLIRContext &context,
7171
std::string errorMessage;
7272
auto file = openInputFile(inputFilename, &errorMessage);
7373
if (!file) {
74+
llvm::errs() << errorMessage << "\n";
7475
return failure();
7576
}
7677

0 commit comments

Comments
 (0)