Skip to content

Commit 61ba0b2

Browse files
[mlir][transform] Improve error message when file not found.
1 parent 2a0ec5f commit 61ba0b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ parseTransformModuleFromFile(MLIRContext *context,
6868
if (!memoryBuffer) {
6969
return emitError(FileLineColLoc::get(
7070
StringAttr::get(context, transformFileName), 0, 0))
71-
<< "failed to parse transform file";
71+
<< "failed to open transform file: " << errorMessage;
7272
}
7373
// Tell sourceMgr about this buffer, the parser will pick it up.
7474
llvm::SourceMgr sourceMgr;

0 commit comments

Comments
 (0)