throwing exception when minification fails