prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  coala_delete_orig: Modify message
  Modify message about `Couldn't delete... <filename>`
  
  @sils1297 please suggest a better message.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `coalib/coala_delete_orig.py`
  Content:
  ```
  1 import os
  2 
  3 from pyprint.ConsolePrinter import ConsolePrinter
  4 
  5 from coalib.output.printers.LogPrinter import LogPrinter
  6 from coalib.parsing import Globbing
  7 from coalib.settings.ConfigurationGathering import get_config_directory
  8 from coalib.settings.Section import Section
  9 
  10 
  11 def main(log_printer=None, section: Section=None):
  12     start_path = get_config_directory(section)
  13     log_printer = log_printer or LogPrinter(ConsolePrinter())
  14 
  15     if start_path is None:
  16         return 255
  17 
  18     orig_files = Globbing.glob(os.path.abspath(
  19         os.path.join(start_path, '**', '*.orig')))
  20 
  21     not_deleted = 0
  22     for ofile in orig_files:
  23         log_printer.info("Deleting old backup file... "
  24                          + os.path.relpath(ofile))
  25         try:
  26             os.remove(ofile)
  27         except OSError as oserror:
  28             not_deleted += 1
  29             log_printer.warn("Couldn't delete... {}. {}".format(
  30                 os.path.relpath(ofile), oserror.strerror))
  31 
  32     if not_deleted:
  33         log_printer.warn(str(not_deleted) + " .orig backup files could not be"
  34                          " deleted, possibly because you lack the permission"
  35                          " to do so. coala may not be able to create"
  36                          " backup files when patches are applied.")
  37     return 0
  38
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/coalib/coala_delete_orig.py b/coalib/coala_delete_orig.py
  --- a/coalib/coala_delete_orig.py
  +++ b/coalib/coala_delete_orig.py
  @@ -26,7 +26,7 @@
               os.remove(ofile)
           except OSError as oserror:
               not_deleted += 1
  -            log_printer.warn("Couldn't delete... {}. {}".format(
  +            log_printer.warn("Couldn't delete {}. {}".format(
                   os.path.relpath(ofile), oserror.strerror))
   
       if not_deleted:
  
verification_info: {"golden_diff": "diff --git a/coalib/coala_delete_orig.py b/coalib/coala_delete_orig.py\n--- a/coalib/coala_delete_orig.py\n+++ b/coalib/coala_delete_orig.py\n@@ -26,7 +26,7 @@\n             os.remove(ofile)\n         except OSError as oserror:\n             not_deleted += 1\n-            log_printer.warn(\"Couldn't delete... {}. {}\".format(\n+            log_printer.warn(\"Couldn't delete {}. {}\".format(\n                 os.path.relpath(ofile), oserror.strerror))\n \n     if not_deleted:\n", "issue": "coala_delete_orig: Modify message\nModify message about `Couldn't delete... <filename>`\n\n@sils1297 please suggest a better message.\n\n", "before_files": [{"content": "import os\n\nfrom pyprint.ConsolePrinter import ConsolePrinter\n\nfrom coalib.output.printers.LogPrinter import LogPrinter\nfrom coalib.parsing import Globbing\nfrom coalib.settings.ConfigurationGathering import get_config_directory\nfrom coalib.settings.Section import Section\n\n\ndef main(log_printer=None, section: Section=None):\n    start_path = get_config_directory(section)\n    log_printer = log_printer or LogPrinter(ConsolePrinter())\n\n    if start_path is None:\n        return 255\n\n    orig_files = Globbing.glob(os.path.abspath(\n        os.path.join(start_path, '**', '*.orig')))\n\n    not_deleted = 0\n    for ofile in orig_files:\n        log_printer.info(\"Deleting old backup file... \"\n                         + os.path.relpath(ofile))\n        try:\n            os.remove(ofile)\n        except OSError as oserror:\n            not_deleted += 1\n            log_printer.warn(\"Couldn't delete... {}. {}\".format(\n                os.path.relpath(ofile), oserror.strerror))\n\n    if not_deleted:\n        log_printer.warn(str(not_deleted) + \" .orig backup files could not be\"\n                         \" deleted, possibly because you lack the permission\"\n                         \" to do so. coala may not be able to create\"\n                         \" backup files when patches are applied.\")\n    return 0\n", "path": "coalib/coala_delete_orig.py"}], "after_files": [{"content": "import os\n\nfrom pyprint.ConsolePrinter import ConsolePrinter\n\nfrom coalib.output.printers.LogPrinter import LogPrinter\nfrom coalib.parsing import Globbing\nfrom coalib.settings.ConfigurationGathering import get_config_directory\nfrom coalib.settings.Section import Section\n\n\ndef main(log_printer=None, section: Section=None):\n    start_path = get_config_directory(section)\n    log_printer = log_printer or LogPrinter(ConsolePrinter())\n\n    if start_path is None:\n        return 255\n\n    orig_files = Globbing.glob(os.path.abspath(\n        os.path.join(start_path, '**', '*.orig')))\n\n    not_deleted = 0\n    for ofile in orig_files:\n        log_printer.info(\"Deleting old backup file... \"\n                         + os.path.relpath(ofile))\n        try:\n            os.remove(ofile)\n        except OSError as oserror:\n            not_deleted += 1\n            log_printer.warn(\"Couldn't delete {}. {}\".format(\n                os.path.relpath(ofile), oserror.strerror))\n\n    if not_deleted:\n        log_printer.warn(str(not_deleted) + \" .orig backup files could not be\"\n                         \" deleted, possibly because you lack the permission\"\n                         \" to do so. coala may not be able to create\"\n                         \" backup files when patches are applied.\")\n    return 0\n", "path": "coalib/coala_delete_orig.py"}]}