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

(based on commit [12280] - e0addb4)

(based on commit [s1827] - 328d652)