error handling for AssetsBuilder

reformulation of #3377 for new error handling API