more detailed messaging error raising and fixing dock passing None