comparison src/errors.h @ 26863:6ee19c6ae8a2 v8.2.3960

patch 8.2.3960: error messages are spread out Commit: https://github.com/vim/vim/commit/f1474d801bbdb73406dd3d1f931f515f99e86dfa Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 31 19:59:55 2021 +0000 patch 8.2.3960: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 Dec 2021 21:15:02 +0100
parents df2de1e63de0
children bce848ec8b1b
comparison
equal deleted inserted replaced
26862:e91b94a101d1 26863:6ee19c6ae8a2
493 INIT(= N_("E228: makemap: Illegal mode")); 493 INIT(= N_("E228: makemap: Illegal mode"));
494 EXTERN char e_cannot_start_the_GUI[] 494 EXTERN char e_cannot_start_the_GUI[]
495 INIT(= N_("E229: Cannot start the GUI")); 495 INIT(= N_("E229: Cannot start the GUI"));
496 496
497 497
498 EXTERN char e_window_layout_changed_unexpectedly[]
499 INIT(= N_("E249: window layout changed unexpectedly"));
498 #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) 500 #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS)
499 EXTERN char e_cannot_allocate_color_str[] 501 EXTERN char e_cannot_allocate_color_str[]
500 INIT(= N_("E254: Cannot allocate color %s")); 502 INIT(= N_("E254: Cannot allocate color %s"));
501 #endif 503 #endif
504
505 EXTERN char e_internal_error_lalloc_zero[]
506 INIT(= N_("E341: Internal error: lalloc(0, )"));
507 EXTERN char e_out_of_memory_allocating_nr_bytes[]
508 INIT(= N_("E342: Out of memory! (allocating %lu bytes)"));
509 EXTERN char e_no_such_group_str[]
510 INIT(= N_("E367: No such group: \"%s\""));
511 EXTERN char e_cannot_write_buftype_option_is_set[]
512 INIT(= N_("E382: Cannot write, 'buftype' option is set"));
513
502 EXTERN char e_ambiguous_use_of_user_defined_command[] 514 EXTERN char e_ambiguous_use_of_user_defined_command[]
503 INIT(= N_("E464: Ambiguous use of user-defined command")); 515 INIT(= N_("E464: Ambiguous use of user-defined command"));
504 EXTERN char e_invalid_command[] 516 EXTERN char e_invalid_command[]
505 INIT(= N_("E476: Invalid command")); 517 INIT(= N_("E476: Invalid command"));
506 #ifdef FEAT_EVAL 518 #ifdef FEAT_EVAL
507 EXTERN char e_invalid_command_str[] 519 EXTERN char e_invalid_command_str[]
508 INIT(= N_("E476: Invalid command: %s")); 520 INIT(= N_("E476: Invalid command: %s"));
521
522 // E502
523 EXTERN char e_is_a_directory[]
524 INIT(= N_("is a directory"));
525 // E503
526 EXTERN char e_is_not_file_or_writable_device[]
527 INIT(= N_("is not a file or writable device"));
528
529 // E504
530 EXTERN char e_is_read_only_cannot_override_W_in_cpoptions[]
531 INIT(= N_("is read-only (cannot override: \"W\" in 'cpoptions')"));
532 // E505
533 EXTERN char e_is_read_only_add_bang_to_override[]
534 INIT(= N_("is read-only (add ! to override)"));
535 EXTERN char e_canot_write_to_backup_file_add_bang_to_override[]
536 INIT(= N_("E506: Can't write to backup file (add ! to override)"));
537 EXTERN char e_close_error_for_backup_file_add_bang_to_write_anyway[]
538 INIT(= N_("E507: Close error for backup file (add ! to write anyway)"));
539 EXTERN char e_cant_read_file_for_backup_add_bang_to_write_anyway[]
540 INIT(= N_("E508: Can't read file for backup (add ! to write anyway)"));
541 EXTERN char e_cannot_create_backup_file_add_bang_to_write_anyway[]
542 INIT(= N_("E509: Cannot create backup file (add ! to override)"));
543 EXTERN char e_cant_make_backup_file_add_bang_to_write_anyway[]
544 INIT(= N_("E510: Can't make backup file (add ! to write anyway)"));
545 EXTERN char e_close_failed[]
546 INIT(= N_("E512: Close failed"));
547 EXTERN char e_write_error_conversion_failed_make_fenc_empty_to_override[]
548 INIT(= N_("E513: write error, conversion failed (make 'fenc' empty to override)"));
549 EXTERN char e_write_error_conversion_failed_in_line_nr_make_fenc_empty_to_override[]
550 INIT(= N_("E513: write error, conversion failed in line %ld (make 'fenc' empty to override)"));
551 EXTERN char e_write_error_file_system_full[]
552 INIT(= N_("E514: write error (file system full?)"));
553 EXTERN char e_no_buffers_were_unloaded[]
554 INIT(= N_("E515: No buffers were unloaded"));
555 EXTERN char e_no_buffers_were_deleted[]
556 INIT(= N_("E516: No buffers were deleted"));
557 EXTERN char e_no_buffers_were_wiped_out[]
558 INIT(= N_("E517: No buffers were wiped out"));
559
560 EXTERN char e_no_argument_to_delete[]
561 INIT(= N_("E610: No argument to delete"));
562 #ifdef FEAT_NETBEANS_INTG
563 // E656
564 EXTERN char e_netbeans_disallows_writes_of_unmodified_buffers[]
565 INIT(= N_("NetBeans disallows writes of unmodified buffers"));
566 // E657
567 EXTERN char e_partial_writes_disallowed_for_netbeans_buffers[]
568 INIT(= N_("Partial writes disallowed for NetBeans buffers"));
569 #endif
570 EXTERN char e_no_matching_autocommands_for_acwrite_buffer[]
571 INIT(= N_("E676: No matching autocommands for acwrite buffer"));
572 EXTERN char e_buffer_nr_invalid_buffer_number[]
573 INIT(= N_("E680: <buffer=%d>: invalid buffer number"));
509 EXTERN char e_cannot_index_a_funcref[] 574 EXTERN char e_cannot_index_a_funcref[]
510 INIT(= N_("E695: Cannot index a Funcref")); 575 INIT(= N_("E695: Cannot index a Funcref"));
576
511 EXTERN char e_list_value_has_more_items_than_targets[] 577 EXTERN char e_list_value_has_more_items_than_targets[]
512 INIT(= N_("E710: List value has more items than targets")); 578 INIT(= N_("E710: List value has more items than targets"));
513 EXTERN char e_list_value_does_not_have_enough_items[] 579 EXTERN char e_list_value_does_not_have_enough_items[]
514 INIT(= N_("E711: List value does not have enough items")); 580 INIT(= N_("E711: List value does not have enough items"));
515 EXTERN char e_cannot_slice_dictionary[] 581 EXTERN char e_cannot_slice_dictionary[]
526 INIT(= N_("E794: Cannot set variable in the sandbox")); 592 INIT(= N_("E794: Cannot set variable in the sandbox"));
527 EXTERN char e_cannot_set_variable_in_sandbox_str[] 593 EXTERN char e_cannot_set_variable_in_sandbox_str[]
528 INIT(= N_("E794: Cannot set variable in the sandbox: \"%s\"")); 594 INIT(= N_("E794: Cannot set variable in the sandbox: \"%s\""));
529 EXTERN char e_cannot_delete_variable[] 595 EXTERN char e_cannot_delete_variable[]
530 INIT(= N_("E795: Cannot delete variable")); 596 INIT(= N_("E795: Cannot delete variable"));
597 // E796
598 EXTERN char e_writing_to_device_disabled_with_opendevice_option[]
599 INIT(= N_("writing to device disabled with 'opendevice' option"));
531 EXTERN char e_cannot_delete_variable_str[] 600 EXTERN char e_cannot_delete_variable_str[]
532 INIT(= N_("E795: Cannot delete variable %s")); 601 INIT(= N_("E795: Cannot delete variable %s"));
533 #endif 602 #endif
603
604 EXTERN char e_blowfish_big_little_endian_use_wrong[]
605 INIT(= N_("E817: Blowfish big/little endian use wrong"));
606 EXTERN char e_sha256_test_failed[]
607 INIT(= N_("E818: sha256 test failed"));
608 EXTERN char e_blowfish_test_failed[]
609 INIT(= N_("E819: Blowfish test failed"));
610 EXTERN char e_sizeof_uint32_isnot_four[]
611 INIT(= N_("E820: sizeof(uint32_t) != 4"));
612 EXTERN char e_bf_key_init_called_with_empty_password[]
613 INIT(= N_("E831: bf_key_init() called with empty password"));
534 EXTERN char e_conflicts_with_value_of_listchars[] 614 EXTERN char e_conflicts_with_value_of_listchars[]
535 INIT(= N_("E834: Conflicts with value of 'listchars'")); 615 INIT(= N_("E834: Conflicts with value of 'listchars'"));
536 EXTERN char e_conflicts_with_value_of_fillchars[] 616 EXTERN char e_conflicts_with_value_of_fillchars[]
537 INIT(= N_("E835: Conflicts with value of 'fillchars'")); 617 INIT(= N_("E835: Conflicts with value of 'fillchars'"));
618 EXTERN char e_autocommands_caused_command_to_abort[]
619 INIT(= N_("E855: Autocommands caused command to abort"));
538 #ifdef FEAT_EVAL 620 #ifdef FEAT_EVAL
539 EXTERN char e_assert_fails_second_arg[] 621 EXTERN char e_assert_fails_second_arg[]
540 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings")); 622 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings"));
623
541 EXTERN char e_using_invalid_value_as_string_str[] 624 EXTERN char e_using_invalid_value_as_string_str[]
542 INIT(= N_("E908: using an invalid value as a String: %s")); 625 INIT(= N_("E908: using an invalid value as a String: %s"));
543 EXTERN char e_cannot_index_special_variable[] 626 EXTERN char e_cannot_index_special_variable[]
544 INIT(= N_("E909: Cannot index a special variable")); 627 INIT(= N_("E909: Cannot index a special variable"));
545 #endif 628 #endif
629 EXTERN char e_buffer_cannot_be_registered[]
630 INIT(= N_("E931: Buffer cannot be registered"));
631 EXTERN char e_cannot_delete_current_group[]
632 INIT(= N_("E936: Cannot delete the current group"));
633 EXTERN char e_attempt_to_delete_buffer_that_is_in_use_str[]
634 INIT(= N_("E937: Attempt to delete a buffer that is in use: %s"));
635 #ifdef FEAT_TERMINAL
636 EXTERN char e_job_still_running[]
637 INIT(= N_("E948: Job still running"));
638 EXTERN char e_job_still_running_add_bang_to_end_the_job[]
639 INIT(= N_("E948: Job still running (add ! to end the job)"));
640 EXTERN char e_file_changed_while_writing[]
641 INIT(= N_("E949: File changed while writing"));
642 #endif
546 EXTERN char_u e_invalid_column_number_nr[] 643 EXTERN char_u e_invalid_column_number_nr[]
547 INIT(= N_("E964: Invalid column number: %ld")); 644 INIT(= N_("E964: Invalid column number: %ld"));
548 EXTERN char_u e_invalid_line_number_nr[] 645 EXTERN char_u e_invalid_line_number_nr[]
549 INIT(= N_("E966: Invalid line number: %ld")); 646 INIT(= N_("E966: Invalid line number: %ld"));
647 EXTERN char e_blob_value_does_not_have_right_number_of_bytes[]
648 INIT(= N_("E972: Blob value does not have the right number of bytes"));
649
550 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] 650 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[]
551 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); 651 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s"));
552 #ifdef FEAT_EVAL 652 #ifdef FEAT_EVAL
553 EXTERN char e_variable_not_found_str[] 653 EXTERN char e_variable_not_found_str[]
554 INIT(= N_("E1001: Variable not found: %s")); 654 INIT(= N_("E1001: Variable not found: %s"));