X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Fparser.re;h=e7787fc6cd47d64d32f0592f9f6cb5d0ea185308;hb=d3171526ab7658114cac4ebe1098af4b038e576e;hp=5b7e80e83c24d81a36892167a51bbd6094704351;hpb=1c837573a87e0d375768e990a28d1b2706dbaf43;p=m6w6%2Fext-psi diff --git a/src/parser.re b/src/parser.re index 5b7e80e..e7787fc 100644 --- a/src/parser.re +++ b/src/parser.re @@ -19,8 +19,10 @@ PSI_Parser *PSI_ParserInit(PSI_Parser *P, const char *filename, psi_error_cb err fp = fopen(filename, "r"); if (!fp) { - error(NULL, PSI_WARNING, "Could not open '%s' for reading: %s", - filename, strerror(errno)); + if (!(flags & PSI_PARSER_SILENT)) { + error(NULL, NULL, PSI_WARNING, "Could not open '%s' for reading: %s", + filename, strerror(errno)); + } return NULL; }