corrected error message when history file is not writable