Correct the use of `format`

In the current code `format` function has format strings passed without conversion specifier, such as `"foo: % bar"` instead of `"foo: %s bar"`. The issue was shadowing prevents display of actual errors and now it seems to work just fine.