[12390] Add support for an own error file for scripting library

(based on commit [12280] - e0addb4)