Fix format-security violations (#802)

croak() expects printf-style format strings. Calling croak(e.what()) directly
causes compilations to fail with -Werror=format-security
This commit is contained in:
Chow Loong Jin 2018-03-21 15:38:33 +08:00 committed by bubnikv
parent 86b79f89ad
commit a32281c268
3 changed files with 4 additions and 4 deletions

View file

@ -212,7 +212,7 @@ _constant()
try {
RETVAL = THIS->output_filepath(path);
} catch (std::exception& e) {
croak(e.what());
croak("%s\n", e.what());
}
%};